Skip to content

After the Riemann Hypothesis Β· result 29 of 48 Β· Algorithms

Testing for primes in polynomial time

There is a fast method, proved correct with no assumptions, to decide whether a number is prime.

Already proved another wayNo hypothesisWork left: 0 Β· Done

The idea

β€œFast” has a precise meaning here: the work grows like a fixed power of the number of digits, not like the number itself. Trial division is not fast in this sense; for a 100-digit number it would outlast the universe.

For a quarter of a century the only test that was fast and proved correct in every case was Miller’s, and it leaned on the generalized hypothesis. In 2002 three computer scientists in Kanpur, Agrawal and his students Kayal and Saxena, found a test that needs no hypothesis at all, using only algebra a strong undergraduate can follow.

It settled the question in principle. In practice their test is slower than the methods people use.

Where it stands

Before
From 1976 the only fast test proved correct in every case was Miller’s, which assumed the hypothesis. In 2002 Agrawal, Kayal and Saxena found one that assumes nothing.
What the proof means for it
Already proved another way Already a theorem.
Open work to be done
Nothing.
Difficulty of that work
0 Β· Done Nothing left to prove. The statement is now simply true. (Our own rough estimate.)

What it rests on

This result does not depend on any box: either it was proved another way, or the hypothesis was never known to imply it. Outlined boxes are the ones it uses.

More results

← Every odd number from 7 on is a sum of three primes The list of all 48Gauss’s class-number problem, proved from both sides β†’