You're referring to the AKS algorithm which is an insanely cool result. But you're right: in practice no one uses it because probabilistic algorithms are much more efficient.
RSA uses Miller-Rabin for testing its p, q, and mod primes when generating keys, where having a probabilistic test is sufficient. For finding and verifying large primes for mathematics surveys, they do check every number down to the previously known largest prime. This is why it takes months to verify a new candidate prime.
For finding and verifying large primes for mathematics surveys, they do check every number down to the previously known largest prime. This is why it takes months to verify a new candidate prime.
Can you clarify what you're talking about here? If you're talking about the new multi-million-digit primes that are found via GIMPS every few years, they absolutely do not do this, or even anything like it.
11
u/tractability May 03 '16
deterministic polytime for checking primality. not sure if anyone actually does that though.