If Legendre's conjecture is true, the gap between any prime p and the next largest prime would be , as expressed in big O notation.[a] It is one of a family of results and conjectures related to prime gaps, that is, to the spacing between prime numbers. Others include Bertrand's postulate, on the existence of a prime between and , Oppermann's conjecture on the existence of primes between , , and , Andrica's conjecture and Brocard's conjecture on the existence of primes between squares of consecutive primes, and Cramér's conjecture 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. Harald Cramér also proved that the Riemann hypothesis implies a weaker bound of on the size of the largest prime gaps.[1]
By the prime number theorem, the expected number of primes between and is approximately , and it is additionally known that for almost allintervals of this form the actual number of primes (OEIS: A014085) is asymptotic to this expected number.[2] Since this number is large for large , this lends credence to Legendre's conjecture.[3] It is known that the prime number theorem gives an accurate count of the primes within short intervals, either unconditionally[4] or based on the Riemann hypothesis,[5] but the lengths of the intervals for which this has been proven are longer than the intervals between consecutive squares, too long to prove Legendre's conjecture.
Partial results
It follows from a result by Ingham that for all sufficiently large , there is a prime between the consecutive cubes and .[6][7] Dudek proved that this holds for all .[8]
Dudek also proved that for and any positive integer , there is a prime between and . Mattner lowered this to [9] which was further reduced to by Cully-Hugill.[10]
Baker, Harman, and Pintz proved that there is a prime in the interval for all large .[11]
A table of maximal prime gaps shows that the conjecture holds to at least , meaning .[12]
Notes
^This is a consequence of the fact that the difference between two consecutive squares is of the order of their square roots.
^Francis, Richard L. (February 2004), "Between consecutive squares"(PDF), Missouri Journal of Mathematical Sciences, 16 (1), University of Central Missouri, Department of Mathematics and Computer Science: 51–57, doi:10.35834/2004/1601051; see p. 52, "It appears doubtful that this super-abundance of primes can be clustered in
such a way so as to avoid appearing at least once between consecutive squares."
^Selberg, Atle (1943), "On the normal density of primes in small intervals, and the difference between consecutive primes", Archiv for Mathematik og Naturvidenskab, 47 (6): 87–105, MR0012624