0

How to calculate $n\bmod p$ when $p$ is prime, and $n$ is an integer of form $a9999...$ where $a$ is digit $1$ to $9$. The number of digits $9$ that follow $a$ is huge (i.e. big enough to not fit memory of my PC).

vitamin d
  • 5,783

0 Answers0