Modulus of Very large Number
asked 9 hours ago by @qa-mmhs8cnsuvjywhemgeq0 0 rep · 163 views
You are given a very large number N (which goes upto 1e10000)
and a 64 bit integer P.
How do i find N % P?
for example:
N= 8290826691135830692772803 , P = 95972011
modulus (N % P) = 60316167
obviously we cannot store N as a number and BigInteger does not exist in the C programming language (gmp is out of the question)
How else can this be solved