Legendre's conjecture, proposed by
Adrien-Marie Legendre
Adrien-Marie Legendre (; ; 18 September 1752 – 9 January 1833) was a French mathematician who made numerous contributions to mathematics. Well-known and important concepts such as the Legendre polynomials and Legendre transformation are nam ...
, states that there is a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
between
and
for every
positive integer
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
. The
conjecture
In mathematics, a conjecture is a conclusion or a proposition that is proffered on a tentative basis without proof. Some conjectures, such as the Riemann hypothesis (still a conjecture) or Fermat's Last Theorem (a conjecture until proven in 1 ...
is one of
Landau's problems
At the 1912 International Congress of Mathematicians, Edmund Landau listed four basic problems about prime numbers. These problems were characterised in his speech as "unattackable at the present state of mathematics" and are now known as Landau' ...
(1912) on prime numbers; , the conjecture has neither been proved nor disproved.
Prime gaps
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. It is one of a family of results and conjectures related to
prime gap
A prime gap is the difference between two successive prime numbers. The ''n''-th prime gap, denoted ''g'n'' or ''g''(''p'n'') is the difference between the (''n'' + 1)-th and the
''n''-th prime numbers, i.e.
:g_n = p_ - p_n.\
W ...
s, that is, to the spacing between prime numbers. Others include
Bertrand's postulate
In number theory, Bertrand's postulate is a theorem stating that for any integer n > 3, there always exists at least one prime number p with
:n < p < 2n - 2.
A less restrictive formulation is: for every , there is always ...
, on the existence of a prime between
and
,
Oppermann's conjecture
Oppermann's conjecture is an unsolved problem in mathematics on the distribution of prime numbers.. It is closely related to but stronger than Legendre's conjecture, Andrica's conjecture, and Brocard's conjecture. It is named after Danish mathemat ...
on the existence of primes between
,
, and
,
Andrica's conjecture
Andrica's conjecture (named afteDorin Andrica is a conjecture regarding the gaps between prime numbers.
The conjecture states that the inequality
:\sqrt - \sqrt < 1
holds for all , where is the ''n''th prime ...
and
Brocard's conjecture
In number theory, Brocard's conjecture is the conjecture that there are at least four prime numbers between (''p'n'')2 and (''p'n''+1)2, where ''p'n'' is the ''n''th prime number, for every ''n'' ≥ 2. The conjecture is named after ...
on the existence of primes between squares of consecutive primes, and
Cramér's conjecture In number theory, Cramér's conjecture, formulated by the Swedish mathematician Harald Cramér in 1936, is an estimate for the size of gaps between consecutive prime numbers: intuitively, that gaps between consecutive primes are always small, and t ...
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
Harald Cramér (; 25 September 1893 – 5 October 1985) was a Swedish mathematician, actuary, and statistician, specializing in mathematical statistics and probabilistic number theory. John Kingman described him as "one of the giants of stati ...
also proved that the
Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pu ...
implies a weaker bound of
on the size of the largest prime gaps.

By the
prime number theorem, the expected number of primes between
and
is approximately
, and it is additionally known that for
almost all
In mathematics, the term "almost all" means "all but a negligible amount". More precisely, if X is a set, "almost all elements of X" means "all elements of X but those in a negligible subset of X". The meaning of "negligible" depends on the mathem ...
intervals of this form the actual number of primes () is
asymptotic
In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates tends to infinity. In projective geometry and related contexts, ...
to this expected number. Since this number is large for large
, this lends credence to Legendre's conjecture. It is known that the prime number theorem gives an accurate count of the primes within short intervals, either unconditionally or based on the
Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pu ...
, 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
.
Baker, Harman and
Pintz proved that there is a prime in the interval