A prime or semiprime between consecutive squares
For every positive integer n, the open interval between n² and (n + 1)² contains a prime or a product of two distinct primes. The computer-assisted proof uses prime-gap estimates and a weighted sieve in the finite range, bilinear estimates at intermediate heights, and an explicit linear sieve at large heights. The accompanying Lean formalization proves the conclusion under four explicit published estimates of Dusart, Büthe, and Montgomery–Vaughan. The source and finite verification programs are available at the linked GitHub commit. Ruixin Wang selected the problem, chose the wheel-sieve approach for the finite range, and directed the Lean verification. OpenAI Codex was used in the mathematical development, in implementing and testing the verification programs, in developing the Lean proofs, and in drafting and editing the manuscript.
Authors
- Ruixin Wang
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24686535
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint