Bayesian Test Scheduling for Mersenne Prime Candidates
Year: 2026
Type: preprint
Abstract: We formalize Mersenne candidate testing as a Bayesian experimental-design problem. Given a pool of prime exponents P_k, proven tests with known computational costs, and an explicitly stated prior, we seek a test-ordering policy that minimizes the Expected Cost to Discovery (ECD). We prove that the Base-2 Fermat probable-prime (PRP) test is mathematically vacuous for prime exponents, and that under the No-False-Rejection Lemma, the computationally intractable Markov Decision Process (MDP) for a myopic greedy policy collapses exactly into a tractable static cost-weighted sort. We evaluate this framework out-of-sample on all 14 historical held-out gaps 16–29 (designed on gaps 1–15). Across the held-out test set, a cost-aware policy reduces the arithmetic mean ECD by 95.6% compared to a heuristic-only baseline, and incorporating an empirical smoothness prior (S4) yields a further 16.2% reduction in mean ECD over pure cost-minimization (outperforming uniform ordering on 9 of 14 gaps). The framework introduces no new algebraic filters; it strictly separates proven composite-elimination from decision-theoretic scheduling. Files included are Main.tex, compiled PDF, candidates_gaps_1_29.csv, generate_candidates_3.py, simulate_scheduler_3.py, verify_means.py, and verify_median.py.
Author: Shiu, Michael Jee
Institution: Stanford University
Language: English
Subfield: Algebra and Number Theory
Field: Mathematics
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238831483
Cites:
Cited by:
Related to:
