PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
[parent] primality testing (Definition)

Primality testing is the evaluation of an integer to determine its primality, to see whether it is prime or composite without actually factoring it. Primality testing is often accomplished using congruences, such as from Fermat's little theorem, but there are also other methods.

With small numbers, it is practical to use integer factorization to determine primality; this is not the case for larger numbers with a large least prime factor. For larger numbers, such as most Mersenne numbers, there are special primality tests which in the case of a composite input return only False without giving any idea as to any of the factors. In the case of the Mersenne numbers, the Lucas-Lehmer primality test is quite effective. For numbers of no particular special form, sophisticated elliptic curve tests can be used.

For practical purposes, primality testing might further have to be limited to answering whether a given number is a probable prime which could turn out to be a pseudoprime to a given base with further testing. In Mathematica, the primality function is PrimeQ[n], which uses the strong Miller-Rabin primality test, which is thought to be infallible even for large numbers which Mathematica would not be able to factor.

In 2002, Agrawal, Kayal and Saxena published an algorithm they claim performs primality testing in polynomial time. Soon after mathematicians such as Carl Pomerance looked at the Agrawal, Kayal and Saxena paper and said it appears to be correct. By 2004, their paper was accepted as correct, confirming the long-held belief that primality testing is a P-problem.

Bibliography

1
Manindra Agrawal, Neeraj Kayal & Nitin Saxena, ``PRIMES is in P'', Annals of Math. 160 (2004): 781 – 793
2
Eric Weisstein, ``Primality Testing Is Easy'' MathWorld News, August 7, 2002



"primality testing" is owned by PrimeFan.
(view preamble | get metadata)

View style:


This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: Carl Pomerance, polynomial time, algorithm, even, strong, function, Mathematica, base, pseudoprime, probable prime, elliptic curve, effective, Lucas-Lehmer primality test, factors, Mersenne numbers, least prime factor, integer factorization, numbers, Fermat's little theorem, congruences, composite, prime, primality, integer
There are 4 references to this entry.

This is version 4 of primality testing, born on 2008-01-26, modified 2008-02-12.
Object id is 10213, canonical name is PrimalityTesting.
Accessed 413 times total.

Classification:
AMS MSC11A41 (Number theory :: Elementary number theory :: Primes)

Pending Errata and Addenda
None.
[ View all 2 ]
Discussion
Style: Expand: Order:
forum policy
(automatic) links by MFH on 2008-08-29 23:09:01
I think that linking "effective" to the "LeftAction" is nonsense ;
not only to avoid this, "effective" could be replaced by "efficient".
[ reply | up ]
Primes in P by ratboy on 2008-01-27 17:39:23
I agree that an entry entitled "primality testing" is incomplete without some mention of "Primes in P". There is a "self contained" account of the algorithm and its complexity in the book _Primality Testing in Polynomial Time: From Randomized Algorithms to "PRIMES Is in P"_:

http://www.amazon.com/Primality-Testing-Polynomial-Time-Randomized/dp/3540403442/ref=sr_1_3?ie=UTF8&s=books&qid=1201475628&sr=1-3

The Solovay-Strassen and Miller-Rabin tests are also discussed.
[ reply | up ]

Interact
post | correct | update request | add derivation | add example | add (any)