problems / landau-legendre

Also in this folder: compute/

Landau 3: Legendre's conjecture

Statement

For every integer n≥1n\geq 1, there is a prime pp such that

n2<p<(n+1)2.n^2<p<(n+1)^2.

Equivalently,

π((n+1)2)−π(n2)>0\pi((n+1)^2)-\pi(n^2)>0

for every n≥1n\geq 1. A global bound

pk+1−pk<2pkp_{k+1}-p_k<2\sqrt{p_k}

would imply Legendre's conjecture, but it is stronger and is not an equivalent formulation.

The conjecture remains open, even assuming the Riemann hypothesis. The unconditional Baker--Harman--Pintz exponent 0.5250.525 for prime gaps gives primes between sufficiently large consecutive powers xαx^\alpha and (x+1)α(x+1)^\alpha only when α>1/(1−0.525)≈2.1053\alpha>1/(1-0.525)\approx2.1053. Ingham's work gives a prime between sufficiently large consecutive cubes.

Published computational record

Sorenson and Webster verified the stronger Oppermann conjecture for every integer

n≤N=70,500,000,000,000.n\leq N=70{,}500{,}000{,}000{,}000.

Thus both (n2,n(n+1))(n^2,n(n+1)) and (n(n+1),(n+1)2)(n(n+1),(n+1)^2) contain primes throughout that range. In particular, Legendre is checked through

N2=4,970,250,000,000,000,000,000,000,000.N^2=4{,}970{,}250{,}000{,}000{,}000{,}000{,}000{,}000{,}000.

This supersedes the older shorthand that the conjecture was checked only through 2642^{64} by maximal-prime-gap tables. The Prime Gap List community now reports exhaustive gap analysis through 102010^{20}, but that is still far below the square-height reached by Sorenson and Webster.

What would count as a new result

An incomplete upstream-data reconstruction or unfinished search is not a finite lower bound. None of these outcomes proves Legendre's conjecture.

Results through 2026-09-04

Assume RH. For every real x≥1x\geq1 and every

δ≥450488039838720000000000000=0.22524401991935,\delta\geq\frac{4504880398387}{20000000000000} =0.22524401991935,

the interval [x2+δ,(x+1)2+δ][x^{2+\delta},(x+1)^{2+\delta}] contains a prime. This improves the earlier notebook value 901/4000=0.22525901/4000=0.22525, which had tightened the 0.22530.2253 printed by Chamberland and Straub. The new exact certificate retains the positive quadratic Taylor term in their inequality (6). Their simpler condition (5) fails at the new rational value, but the strengthened splice inequality holds and is increasing from the splice onward. This does not remove RH and does not settle the exponent 22 case.

The computation also independently verifies both Oppermann halves for the 100,000 integers

232−100000≤n<232,2^{32}-100000\leq n<2^{32},

ending at square-height 2642^{64}. This replay is far below the published record and is not a record extension.

Finally, the checked-in public OLC worker logs at the pinned upstream commit have four holes and stop at n=31,894,400,000,352n=31{,}894{,}400{,}000{,}352. This is an incomplete public-data reconstruction only. It does not revise the peer-reviewed N=7.05⋅1013N=7.05\cdot10^{13} result.

Replay the original finite certificates with problems/landau-legendre/compute/q1/run_all.sh and the new exponent certificate with problems/landau-legendre/compute/q3/run_all.sh.