Baillie–PSW primality test
In number theory, the Baillie–PSW primality test is a probabilistic primality testing heuristic algorithm: it determines if a number is composite or a probable prime. The authors of the test offered $30 for the discovery of a composite number that passed this test. As of 1994[update], the value was raised to $620[1] and no pseudoprime was found up to 1017,[2] consequently this can be considered a sound primality test on numbers below that upper bound.
A primality testing software PRIMO[3] uses this algorithm to check for probable primes, and no certification of this test has yet failed. The author, Marcel Martin, estimates by those results that the test is accurate for numbers below 10000 digits. There is a heuristic argument (Pomerance 1984) suggesting that there may be infinitely many counterexamples.[4]
[edit] The test
- Optionally, perform trial division to check if the number isn't a multiple of a small prime number.
- Perform a base 2 strong pseudoprimality test. If it fails; n is composite.
- Find the first a in the sequence 5, −7, 9, −11, ... for which the Jacobi symbol
. - Perform a Lucas pseudoprimality test with discriminant a on n. If this test does not fail, n is likely a prime.
[edit] References
- ^ Guy, R. (1994). “Pseudoprimes. Euler Pseudoprimes. Strong Pseudoprimes.” §A12 in Unsolved Problems in Number Theory. 2nd ed., p. 28, New York: Springer-Verlag. ISBN 0-387-20860-7.
- ^ Weisstein, Eric W., "Baillie-PSW Primality Test" from MathWorld.
- ^ PRIMO
- ^ Pomerance, C. (1984), Are There Counterexamples to the Baillie-PSW Primality Test?, http://www.pseudoprime.com/dopo.pdf
[edit] Further reading
- Nicely, Thomas R., The Baillie-PSW primality test., http://www.trnicely.net/misc/bpsw.html
- Baillie, Robert; Samuel S. Wagstaff, Jr. (1980), "Lucas pseudoprimes", Math. Comp. 35: 1391–1417, http://mpqs.free.fr/LucasPseudoprimes.pdf
- Pomerance, Carl; John L. Selfridge, and Samuel S. Wagstaff, Jr. (1980), "The pseudoprimes to 25 * 109", Math. Comp. 35: 1003–1026, http://www.math.dartmouth.edu/~carlp/PDF/paper25.pdf
|
|||||||||||||||||||||||||||||
.