AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Baillie–PSW Primality Test
BPSW1980
A primality test that requires a number to pass both a base-2 strong probable-prime test and a strong Lucas probable-prime test. No composite passing it is known, and several libraries use it as their default test.
Origin
2 independent origins — credit is split among them
Carl Pomerance, J. L. Selfridge, Samuel S. Wagstaff, Jr. (1980). The pseudoprimes to 25⋅10⁹. Mathematics of Computation 35(151).doi:10.1090/S0025-5718-1980-0572872-7 — checked against Crossref, 2026-11-08
Robert Baillie, Samuel S. Wagstaff, Jr. (1980). Lucas pseudoprimes. Mathematics of Computation 35(152).doi:10.1090/S0025-5718-1980-0583518-6 — checked against Crossref, 2026-11-08
Lineage
Algorithms 2 · Relations 1
Parent algorithms
Where it came from
Miller–Rabin Primality Test1976
Author statementThe BPSW test combines a base-2 strong probable-prime test (one Miller–Rabin round) with a strong Lucas test — doi:10.1090/S0025-5718-1980-0583518-6
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…