Why it matters
Cryptography rests on number theory. Understanding shapes crypto intuition.
Advertisement
The architecture
Miller-Rabin: probabilistic primality via modular exponentiation.
Pollard rho: birthday paradox for factorization.
Advertisement
How it works end to end
Miller-Rabin: choose witnesses (first few primes); test each.
Pollard rho: O(n^0.25) expected. Uses cycle detection.
Baby-step giant-step: O(√n) discrete log.
RSA + Diffie-Hellman rely on hard factorization + discrete log.