Skip to main content
\( \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section21.3The Prime Number Theorem

It turns out \(Li(x)\) is a pretty good approximation indeed.

Subsection21.3.1Stating the theorem

This result, conjectured by Riemann, was proved about 100 years after the initial investigations of Gauss by the French and Belgian mathematicians Jacques Hadamard and Charles-Jean de la Vallée-Poussin. They made good use of the analytic methods we are slowly approaching.

Any proof is this is well beyond the bounds of this text. One of several modern versions is in the analytic number theory text [C.3.6] by Apostol; see also [C.1.9]. Additionally, as a series of exercises (!) in that book, one can also explore a proof due to Selberg and Erdős that is “elementary”, in the sense of not using complex-valued integrals. There is a well-known exposition of a very similar proof in [C.1.2], and another in [C.3.4].

Later, we'll see that many better approximations to \(\pi(x)\) exist which come out of this sort of thinking. Notice how the approximations in the next cell take the logarithmic integral and subtract various correction factors in the attempt to get closer.

Subsection21.3.2Chebyshev's contributions

Although we cannot explore the theorem itself in depth, we can understand some of the steps one must take on the way there. It is a good place to highlight the number-theoretic contributions of the great Russian mathematician Chebyshev (Чебышёв), who made fundamental advances in this type of number theory as well as in statistics.

He was the first person to prove a conjecture known (even today!) as Bertrand's Postulate, after the French mathematician who first proposed it.

Proof

Try testing it yourself below!

On a related note, although this proves you can't have too long of stretches without prime numbers, you can certainly have arbitrary stretches of composite numbers. Paul Nahin, in [C.6.13], describes the following cute result of Louis A. Graham.

Try testing it yourself below!

More immediately germane to our task of looking at \(\pi(x)\) and its value, Chebyshev proved the first substantial result on the way to the Prime Number Theorem, validating Legendre's intuition.

Interestingly, this is not the same as the Prime Number Theorem; see Exercise 21.5.6.

What we will show here is the gist of a smaller piece of this theorem.