AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Miller–Rabin Primality Test
Rabin–Miller test, strong probable prime test1976
A primality test that writes n−1 as 2^s·d and checks a strong Fermat condition for chosen bases to detect composites. Miller presented it as a deterministic test under the generalized Riemann hypothesis, and Rabin as a randomized test with random bases.
Origin
2 independent origins — credit is split among them
Gary L. Miller (1976). Riemann's hypothesis and tests for primality. Journal of Computer and System Sciences 13(3).doi:10.1016/S0022-0000(76)80043-8 — checked against Crossref, 2026-11-08
Michael O. Rabin (1980). Probabilistic algorithm for testing primality. Journal of Number Theory 12(1).doi:10.1016/0022-314X(80)90084-0 — checked against Crossref, 2026-11-08
Lineage
Algorithms 3 · Relations 2
Derived algorithms
What it led to
Baillie–PSW Primality Test1980
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…