Nepedia
Back to Discover
Fluent Reader
🔢

AKS primality test

math Maturity 7-9 Next article →

Prime numbers are the building blocks of math. These special numbers can only be divided by one and themselves. For a long time, finding them was a hard job. Some math tests were very fast but only worked for certain kinds of numbers. Other tests were always right but took far too much time to finish. Scientists wanted a way to find primes that was fast and worked for every number. This is why the AKS primality test is so important to math experts.

The AKS test works by using a special math rule. This rule uses something called a polynomial. A polynomial is a string of terms that uses a symbol like X. The test checks if a specific math equation stays balanced. If the equation does not balance, the number is not prime. This process is called a congruence relation. By checking this many times, the test can prove a number is prime. It does this without needing to guess or use unproven ideas.

Three computer scientists changed math history in 2002. Their names are Manindra Agrawal, Neeraj Kayal, and Nitin Saxena. They worked at the Indian Institute of Technology Kanpur. On August 6, 2002, they shared their discovery. They wrote a paper called "PRIMES is in P." This paper showed a way to test primes in what is called polynomial time. This means the test stays fast even as numbers get much larger.

This discovery earned the team two very famous awards. In 2006, they received the Gödel Prize. They also won the Fulkerson Prize for their hard work. The AKS test was the first to be general, fast, and always correct. Other tests like the Lucas-Lehmer test only work for Mersenne numbers. The Pépin's test only works for Fermat numbers. The AKS test is special because it works for any general number you give it.

Even though it is a huge deal, we do not use AKS every day. It is what scientists call a "galactic algorithm." This means it is very important in theory, but not the fastest in practice. For 64-bit numbers, a test called Baillie-PSW is much faster. Other tests like ECPP are also better for very large numbers. Still, the AKS test proved something amazing. It showed that we can always find the truth about prime numbers.

389 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.