Legendre's conjecture


Legendre's conjecture, proposed by Adrien-Marie Legendre, states that there is a prime number between n2 and 2 for every positive integer n. The conjecture is one of Landau's problems on prime numbers; as of 2020, the conjecture has neither been proved nor disproved.

Prime gaps

Legendre's conjecture is one of a family of results and conjectures related to prime gaps, that is, to the spacing between prime numbers.
The prime number theorem suggests that the actual number of primes between n2 and 2 is asymptotic to n/ln. Since this number is large for large n, this lends credence to Legendre's conjecture.
If Legendre's conjecture is true, the gap between any prime p and the next largest prime would always be at most on the order of ; in big O notation, the gaps are. Two stronger conjectures, Andrica's conjecture and Oppermann's conjecture, also both imply that the gaps have the same magnitude.
Harald Cramér conjectured that the gaps are always much smaller, of the order. If Cramér's conjecture is true, Legendre's conjecture would follow for all sufficiently large n. Cramér also proved that the Riemann hypothesis implies a weaker bound of on the size of the largest prime gaps.
A counterexample near 1018 would require a prime gap fifty million times the size of the average gap.
Legendre's conjecture implies that at least one prime can be found in every half revolution of the Ulam spiral.

Partial results

It follows from a result by Ingham that for all sufficiently large, there is a prime between the consecutive cubes and.
Baker, Harman and Pintz proved that there is a prime in the interval for all large.
A table of maximal prime gaps shows that the conjecture holds to at least, meaning.
It has been proven that for infinitely many, we have
where is the prime-counting function.