Added to Favorites

Popular Searches

Nearby Words

The AKS primality test (also known as Agrawal-Kayal-Saxena primality test and cyclotomic AKS test) is a deterministic primality-proving algorithm created and published by three Indian Institute of Technology Kanpur computer scientists, Manindra Agrawal, Neeraj Kayal, and Nitin Saxena on August 6, 2002 in a paper titled PRIMES is in P
The authors received many accolades, including the 2006 Gödel Prize and the 2006 Fulkerson Prize for this work.## Importance

## Basis of the test

## AKS Updated

In response to some of these variants and other feedback the paper "PRIMES is in P" was republished with a new formulation of the AKS algorithm and its proof of correctness. While the basic idea remained the same, r was chosen in a new manner and the proof of correctness was more coherently organized. While the previous proof relied on many different methods the new version relied almost exclusively on the behavior of cyclotomic polynomials over finite fields.## References

## External links

The algorithm determines whether a number is prime or composite within polynomial time, and was soon improved by others. In 2005, Carl Pomerance and H. W. Lenstra, Jr. demonstrated a variant of AKS that runs in O(log^{6+ε} n) operations where n is the number to be tested, a marked improvement over the initial O(log^{12+ε} n) bound in the original algorithm .

The key significance of AKS is that it was the first published primality-proving algorithm to be simultaneously general, polynomial, deterministic, and unconditional. Previous algorithms have achieved any three of these properties, but not all four.

- The AKS algorithm can be used to verify the primality of any general number given. Many fast primality tests are known that only work for numbers with certain properties. The Lucas–Lehmer test only works for Mersenne numbers while Pépin's test can only be applied to Fermat numbers.
- The maximum running time of the algorithm can be expressed as a polynomial over the number of digits in the target number. ECPP and APR conclusively prove or disprove that a given number is prime, but are not known to have polynomial time bounds for all inputs.
- The algorithm guarantees to deterministically distinguish whether the target number is prime or composite. Randomized tests like Miller-Rabin and Baillie-PSW can test any given number for primality in polynomial time, but are known only to produce a probabilistic result.
- The correctness of AKS is not conditional on any subsidiary unproven hypothesis. In contrast, the Miller test is fully deterministic and runs in polynomial time over all inputs, but its correctness depends on the truth of the yet-unproven generalized Riemann hypothesis.

The AKS primality test is based upon the equivalence

- $(x\; -\; a)^\{n\}\; equiv\; (x^\{n\}\; -\; a)\; pmod\{n\}$

- $(x\; -\; a)^\{n\}\; equiv\; (x^\{n\}\; -\; a)\; pmod\{n,\; x^\{r\}\; -\; 1\}$

The algorithm to test the primality of some integer n consists of two parts. The first step revolves around finding a suitable prime $r\; =\; kq\; +\; 1$, such that:

- $P(r\; -\; 1)\; =\; q$ where $P(x)$ is the greatest prime factor of $x$,
- $q\; ge\; 4\; sqrt\{r\}\; log\_\{2\}(n),$
- $n^k\; notequiv\; 1\; pmod\{r\}.$

During this step, it is important to confirm that n is not divisible by any prime $p\; le\; r$; if it is divisible, the algorithm can terminate immediately to report that n is composite.

In the second step, a number of tests are done in the finite field $GF(n^r)$, in each case testing the equivalence of two polynomials within the field: if

- $(x\; -\; a)^\{n\}\; equiv\; (x^\{n\}\; -\; a)\; pmod\{n,\; x^\{r\}\; -\; 1\}$

- $a\; le\; 2\; sqrt\{r\}\; log\_\{2\}(n),$

As with any such algorithm, the paper concerned itself with establishing two facts: proving that the algorithm was correct, and establishing its asymptotic time complexity. This was achieved by proving two key facts, first by showing that an appropriate r can always be found and establishing an upper bound on its magnitude, and second by showing that the multiple equalities tested in the second part of the algorithm are sufficient to guarantee whether n is prime or composite.

Since the running time of both parts of the algorithm is entirely dependent on the magnitude of r, proving an upper bound on r was sufficient to show that the asymptotic time complexity of the algorithm is O$(log^\{12+epsilon\}(n))$, where ε is a small number. In other words, the algorithm takes less time than a constant times the twelfth (plus ε) power of the number of digits in n.

However the upper bound proven in the paper is quite loose; indeed, a widely held conjecture about the distribution of the Sophie Germain primes would, if true, immediately cut the worst case down to O$(log^\{6+epsilon\}(n))$.

In the following months after the discovery new variants appeared (Lenstra 2002, Pomerance 2002, Berrizbeitia 2003, Cheng 2003, Bernstein 2003a/b, Lenstra and Pomerance 2003) which improved AKS' speed by orders of magnitude. Due to the existence of the many variants, Crandall and Papadopoulos refer to the "AKS-class" of algorithms in their scientific paper "On the implementation of AKS-class primality tests" published in March 2003.

Again the AKS algorithm consists of two parts, and the first step is to find a suitable r; however, in the new version r is the smallest number such that: $o\_r(n)\; >\; log^2\; n,$ where $o\_r(n)$ is the multiplicative order of n modulo r.

In the second step the equivalence

- $(x\; -\; a)^\{n\}\; equiv\; (x^\{n\}\; -\; a)\; pmod\{x^\{r\}\; -\; 1,n\}\; ,$

These changes improved the flow of the proof of correctness. It also allowed for an improved bound on the time complexity which is now O$(log^\{10.5\}n)$.

Hendrik Lenstra and Carl Pomerance show how to choose polynomials in the test such that a time bound of Õ$(log^6n)$ is achieved .

- R. Crandall, Apple ACG, and J. Papadopoulos (March 18, 2003): On the implementation of AKS-class primality tests (PDF)
- Article by Borneman, containing photos and information about the three Indian scientists (PDF)
- Andrew Granville: It is easy to determine whether a given integer is prime
- The Prime Facts: From Euclid to AKS, by Scott Aaronson (PDF)
- The PRIMES is in P little FAQ by Anton Stiglic
- 2006 Gödel Prize Citation
- 2006 Fulkerson Prize Citation

Wikipedia, the free encyclopedia © 2001-2006 Wikipedia contributors (Disclaimer)

This article is licensed under the GNU Free Documentation License.

Last updated on Friday September 19, 2008 at 12:10:55 PDT (GMT -0700)

View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation

This article is licensed under the GNU Free Documentation License.

Last updated on Friday September 19, 2008 at 12:10:55 PDT (GMT -0700)

View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation

Copyright © 2014 Dictionary.com, LLC. All rights reserved.