AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Lucas–Lehmer Primality Test
Lucas–Lehmer test1878
A deterministic test that declares the Mersenne number M_p = 2^p−1 prime exactly when s_{p−2} ≡ 0 (mod M_p), where s₀ = 4 and s_{k+1} = s_k²−2. It is used in searches for Mersenne primes.
Origin
2 independent origins — credit is split among them
Édouard Lucas (1878). Theorie des Fonctions Numeriques Simplement Periodiques. American Journal of Mathematics 1(2).doi:10.2307/2369308 — checked against Crossref, 2026-11-08The paper was published in parts across issues 2–4 of volume 1 of the American Journal of Mathematics; this DOI is the part in issue 2.
D. H. Lehmer (1930). An Extended Theory of Lucas' Functions. Annals of Mathematics 31(3).doi:10.2307/1968235 — checked against Crossref, 2026-11-08
Lineage
Algorithms 1 · Relations 0
No derivations recorded yet.
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…