Lably
Skip to content

Prime-counting function

Function representing the number of primes less than or equal to a given number

  • 8 min read
  • 7 chapters

Related on Lably

Through Mathematics, Function (mathematics) and Prime number

A symmetric variant seen sometimes is π0(x), which is equal to π(x) − 1⁄2 if x is exactly a prime number, and equal to π(x) otherwise. That is, the number of prime numbers less than x, plus half if x equals a prime.

Growth rate

Of great interest in number theory is the growth rate of the prime-counting function. It was conjectured in the end of the 18th century by Gauss and by Legendre to be approximately xlog⁡x where log is the natural logarithm, in the sense that limx→∞π(x)x/log⁡x=1. This statement is the prime number theorem. An equivalent statement is limx→∞π(x)li⁡(x)=1 where li is the logarithmic integral function. The prime number theorem was first proved in 1896 by Jacques Hadamard and by Charles de la Vallée Poussin independently, using properties of the Riemann zeta function introduced by Riemann in 1859. Proofs of the prime number theorem not using the zeta function or complex analysis were found around 1948 by Atle Selberg and by Paul Erdős (for the most part independently).

More precise estimates

In 1899, de la Vallée Poussin proved that π(x)=li⁡(x)+O(xe−alog⁡x)as x→∞ for some positive constant a. Here, O(...) is the big O notation.

More precise estimates of π(x) are now known. For example, in 2002, Kevin Ford proved that π(x)=li⁡(x)+O(xexp⁡(−0.2098(log⁡x)3/5(log⁡log⁡x)−1/5)).

Mossinghoff and Trudgian proved an explicit upper bound for the difference between π(x) and li(x): |π(x)−li⁡(x)|≤0.2593x(log⁡x)3/4exp⁡(−log⁡x6.315)for x≥229.

For values of x that are not unreasonably large, li(x) is greater than π(x). However, π(x) − li(x) is known to change sign infinitely many times. For a discussion of this, see Skewes' number.

Exact form

For x>1, let π0(x)=π(x)−1/2 when x is prime, and let π0(x)=π(x) otherwise. Riemann's explicit formula is most naturally stated in terms of the prime-power counting function Π0(x). In modern notation,

Π0(x)=li⁡(x)−∑ρli⁡(xρ)−log⁡2+∫x∞dtt(t2−1)log⁡t,

where the sum is over the non-trivial zeros ρ of the Riemann zeta function, taken in the usual symmetric order. Möbius inversion then yields

π0(x)=∑n=1∞μ(n)nΠ0(x1/n).

This is the form used, for example, in treatments of Riemann's prime-number formula such as Riesel and Göhl.

Writing the result instead in the frequently quoted form involving R⁡(xρ) requires an additional interchange between the Möbius summation and the sum over the zeros of the Riemann zeta function. Since the relevant series are not absolutely convergent, this interchange does not follow from Möbius inversion alone and requires a separate justification. Its validity in this form has consequently been questioned in the literature. More recently, a preprint has claimed that, under the standard symmetric ordering of the non-trivial zeros, the corresponding partial sums are in fact unbounded.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Functions