Two 37-Digit 20-Base Strong Pseudoprimes: Kernel-Verified Certificates, Order Criteria, and Exact Sieve Laws
Version 3 / Dec 05, 2026 / CC BY 4.0
Abstract
The first twelve prime bases suffice for every unsigned 64-bit integer, whereas the first twenty fail inside 128 bits. We exhibit two 37-digit counterexamples (121 bits) and (123 bits) in Zhang's family, each passing the Miller--Rabin strong test through base and failing at while passing Fermat at , giving the unconditional bound . All four Pratt primality proofs, all twenty-one strong tests, the order and Fermat criteria, the exact strong-liar share and base-2 cap , the sieve residue count , the exact Jacobsthal character-sum cell split, and the general semiprime quadratic-residue law are proved inside the Lean 4 pure kernel. An external GMP sieve extending Zhang's search from to across shards ( rechecked) returns exactly and , while Zhang's unrestricted conjecture () remains open. Companion result page: https://mathdiscoveries.org/results/spsp-psi20
Provenance statement
Formalizations
Tools used
- Anthropic
- Claude
- OpenAI
- Codex
References
- Aladov, N.\ S. [Aladow, N.] On the distribution of quadratic residues and nonresidues of a prime in the series (in Russian). Mat.\ Sb. 1896 , 18 , 61--75.
- Arnault, F. Rabin--Miller primality test: Composite numbers which pass it. Math.\ Comp. 1995 , 64 (209), 355--361. DOI: 10.1090/S0025-5718-1995-1260124-2 (https://doi.org/10.1090/S0025-5718-1995-1260124-2).DOI
- Bleichenbacher, D. Efficiency and security of cryptosystems based on number theory. Ph.D.\ thesis, Diss.\ ETH No.\ 11404, ETH Zürich, 1996 .
- Conrad, K. Quadratic residue patterns modulo a prime. Expository note, University of Connecticut. https://kconrad.math.uconn.edu/blurbs/ugradnumthy/QuadraticResiduePatterns.pdf.link
- Damg a rd, I.; Landrock, P.; Pomerance, C. Average case error estimates for the strong probable prime test. Math.\ Comp. 1993 , 61 (203), 177--194. DOI: 10.1090/S0025-5718-1993-1189518-9 (https://doi.org/10.1090/S0025-5718-1993-1189518-9).DOI
- Jacobsthal, E. Anwendungen einer Formel aus der Theorie der quadratischen Reste. Inaugural-Dissertation, Friedrich-Wilhelms-Universität zu Berlin; W.\ Fr.\ Kästner: Göttingen, 1906 .
- Jaeschke, G. On strong pseudoprimes to several bases. Math.\ Comp. 1993 , 61 (204), 915--926. DOI: 10.1090/S0025-5718-1993-1192971-8 (https://doi.org/10.1090/S0025-5718-1993-1192971-8).DOI
- Monier, L. Evaluation and comparison of two efficient probabilistic primality testing algorithms. Theoret.\ Comput.\ Sci. 1980 , 12 (1), 97--108. DOI: 10.1016/0304-3975(80)90007-9 (https://doi.org/10.1016/0304-3975(80)90007-9).DOI
- Pratt, V.\ R. Every prime has a succinct certificate. SIAM J.\ Comput. 1975 , 4 (3), 214--220. DOI: 10.1137/0204018 (https://doi.org/10.1137/0204018).DOI
- Sorenson, J.\ P.; Webster, J. Strong pseudoprimes to twelve prime bases. Math.\ Comp. 2017 , 86 (304), 985--1003. DOI: 10.1090/mcom/3134 (https://doi.org/10.1090/mcom/3134). Preprint arXiv:1509.00864v1 (https://arxiv.org/abs/1509.00864v1).arXivDOI
Show all 13 referencesShow fewer references
- Weng, Y. Biases in moments of Dirichlet coefficients of elliptic curve families. arXiv:2102.02702v3 (https://arxiv.org/abs/2102.02702v3), 2021 .arXiv
- Zhang, Z. Two kinds of strong pseudoprimes up to . Math.\ Comp. 2007 , 76 (260), 2095--2107. DOI: 10.1090/S0025-5718-07-01977-1 (https://doi.org/10.1090/S0025-5718-07-01977-1).DOI
- Zhang, Z.; Tang, M. Finding strong pseudoprimes to several bases.\ II. Math.\ Comp. 2003 , 72 (244), 2085--2097. DOI: 10.1090/S0025-5718-03-01545-X (https://doi.org/10.1090/S0025-5718-03-01545-X).DOI
Version history
- v3 · 9 pagesSubmitted by Tyler Hughes9 pages, 3 figures. 6 of 8 main results (all 6 mathematical theorems and propositions: both 37-digit witnesses, all 4 Pratt primality certificates, all 21 strong tests, psi_20 <= n_1 < 2^121, order criteria, exact strong-liar share, CRT wheel count, Jacobsthal cell split, and general A/B ratio condition) formally verified in pure-kernel Lean 4 (103 audited declarations, zero sorry, zero native_decide, standard axioms only); 2 external GMP C-sieve enumerations are marked certificate-only. Companion page, interactive blueprint, and verification dossier: https://mathdiscoveries.org/results/spsp-psi20 ; Zenodo preprint archive: https://doi.org/10.5281/zenodo.24673236 (v5.2: https://doi.org/10.5281/zenodo.24706986) ; Zenodo Lean 4 archive: https://doi.org/10.5281/zenodo.24490765 ; Lean 4 source repository: https://github.com/mathdiscoveries/spsp-psi20 . Includes anc/recompute.py for verbatim Section 1 witness, 12-node Pratt certificate, wheel, and Jacobsthal cell replay.CurrentDec 05, 2026