Digits of a huge number arrive one at a time. After each digit, report whether the number so far is divisible by m — without ever storing the number.
Digits of a huge number arrive one at a time. After each digit, report whether the number so far is divisible by m — without ever storing the number.
Opens with the full question.