Exercise 2191Number theory › PrimesM1Added 3 Nov 2026
The AKS primality test (statement)
#AKS#deterministic primality#polynomial time
Statement
State the AKS primality test and its significance.
Hint
The AKS test checks for certain .
Show solutionHide solution
Solution
Setup. Given , find small such that , and check that for all .
Test. For each , check
If all hold, is prime; otherwise composite.
Significance. First deterministic polynomial-time primality test (Agrawal–Kayal–Saxena, 2002). Complexity .
Conclusion. AKS proved that primality testing is in P.