Two 37-Digit 20-Base Strong Pseudoprimes: Kernel-Verified Certificates, Order Criteria, and Exact Sieve Laws

Primarily AI-generated textHuman understanding: some partsmath.NT — Number Theorycs.DS — Data Structures and Algorithms

Contributed by Tyler B. Hughes ↗

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 n1=p1(2p1−1)n_1 = p_1(2p_1-1) (121 bits) and n2=p2(2p2−1)n_2 = p_2(2p_2-1) (123 bits) in Zhang's K2K_2 family, each passing the Miller--Rabin strong test through base 7171 and failing at 7373 while passing Fermat at 7373, giving the unconditional bound ψ20≤n1<2121\psi_{20} \le n_1 < 2^{121}. All four Pratt primality proofs, all twenty-one strong tests, the K2K_2 order and Fermat criteria, the exact strong-liar share (1+2⋅4−e)/6(1 + 2\cdot 4^{-e})/6 and base-2 cap 3/163/16, the sieve residue count A(b)A(b), the exact b mod 8b\bmod 8 Jacobsthal character-sum cell split, and the general A/BA/B semiprime quadratic-residue law are proved inside the Lean 4 pure kernel. An external GMP sieve extending Zhang's K2K_2 search from 103610^{36} to 103710^{37} across 1,0241{,}024 shards (6464 rechecked) returns exactly n1n_1 and n2n_2, while Zhang's unrestricted conjecture ψt=ψt′\psi_t = \psi'_t (t≥12t \ge 12) remains open. Companion result page: https://mathdiscoveries.org/results/spsp-psi20

Author comments: 9 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.

Provenance statement

Tyler B. Hughes directed the research program, problem selection, verification bar, and manuscript review; AI systems conducted the searches, proved and formalized 6 of 8 main results in pure-kernel Lean 4 (103 audited declarations, zero sorry, zero native_decide, standard axioms only), generated the figures and anc/recompute.py replay script, and drafted the manuscript. Two large-scale external GMP C-sieve enumerations (Propositions 7 and 8) are marked certificate-only outside Lean. No human mathematician has yet refereed the proof. Full provenance, prior-work logs, and companion verification dossier are archived at https://mathdiscoveries.org/results/spsp-psi20 and https://doi.org/10.5281/zenodo.24673236 .

Formalizations

Tools used

Anthropic
Claude
OpenAI
Codex

References

  1. Aladov, N.\ S. [Aladow, N.] On the distribution of quadratic residues and nonresidues of a prime PP in the series 1,2,…,P−11, 2, \ldots, P - 1 (in Russian). Mat.\ Sb. 1896 , 18 , 61--75.
  2. 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
  3. Bleichenbacher, D. Efficiency and security of cryptosystems based on number theory. Ph.D.\ thesis, Diss.\ ETH No.\ 11404, ETH Zürich, 1996 .
  4. Conrad, K. Quadratic residue patterns modulo a prime. Expository note, University of Connecticut. https://kconrad.math.uconn.edu/blurbs/ugradnumthy/QuadraticResiduePatterns.pdf.link
  5. 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
  6. 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 .
  7. 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
  8. 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
  9. 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
  10. 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
  1. Weng, Y. Biases in moments of Dirichlet coefficients of elliptic curve families. arXiv:2102.02702v3 (https://arxiv.org/abs/2102.02702v3), 2021 .arXiv
  2. Zhang, Z. Two kinds of strong pseudoprimes up to 103610^{36}. 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
  3. 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

  1. 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