Module modular_power_of_power_for_prime_modulus

Source

Functions§

pow_of_pow
x^(y^z) mod p fermat’s little theorem (x mod p)^(y^z mod (p - 1)) mod p