Concepts2
βMathIntermediate
Miller-Rabin Primality Test
MillerβRabin is a fast primality test that uses modular exponentiation to detect compositeness with very high reliability.
#miller-rabin#primality test#probable prime+11
βMathIntermediate
Fermat's Little Theorem
Fermat's Little Theorem says that for a prime p and integer a not divisible by p, a^{p-1} β‘ 1 (mod p).
#fermat's little theorem#modular inverse#binary exponentiation+11