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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A prime or semiprime between consecutive squares

Ruixin Wang
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

A prime or semiprime between consecutive squares

Ruixin Wang
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon