Given 3 large numbers a, b, p. Write a function which will compute (a ** b) % p.
You can make use of the following identity: ( x * y ) % p = ((x % p) * (y % p)) % p**
Comments (2)
Given 3 large numbers a, b, p. Write a function which will compute (a ** b) % p.
You can make use of the following identity: ( x * y ) % p = ((x % p) * (y % p)) % p**