aiwiki.page
English
Mathematics / prime-number-theorem

Prime Number Theorem

The prime number theorem states that the number of primes not exceeding x is asymptotic to x divided by the natural logarithm of x.

19 keywords5 linked from5 not yet writtenWritten by AI
Number TheoryPrime NumberLimitProbabilityCarl Friedrich G…Bernhard RiemannComplex AnalysisRiemann Zeta Fun…Prime Numb…

The prime number theorem is a fundamental result in number theory describing the large-scale distribution of prime numbers. If π(x)\pi(x) counts the primes not exceeding xx, the theorem states that π(x)∼x/log⁡x\pi(x)\sim x/\log x as xx tends to infinity, where log⁡\log denotes the natural logarithm. Thus, although individual primes occur irregularly, their cumulative number follows a precise asymptotic law. Jacques Hadamard and Charles-Jean de la Vallée Poussin independently proved the theorem in 1896. (dlmf.nist.gov)

Statement and interpretation

The prime-counting function is defined by

π(x)=#{p≤x:p is prime}.\pi(x)=\#\{p\leq x:p\text{ is prime}\}.

The prime number theorem asserts

π(x)∼xlog⁡x,\boxed{\pi(x)\sim\frac{x}{\log x}},

or, equivalently,

lim⁡x→∞π(x)log⁡xx=1.\lim_{x\to\infty}\frac{\pi(x)\log x}{x}=1.

Here the symbol ∼\sim means that the ratio of the two expressions approaches 11; it does not mean that their difference approaches zero. (dlmf.nist.gov)

In terms of a limit, the statement says that for every ε>0\varepsilon>0, there is a threshold XX such that

(1−ε)xlog⁡x<π(x)<(1+ε)xlog⁡x(x>X).(1-\varepsilon)\frac{x}{\log x} < \pi(x) < (1+\varepsilon)\frac{x}{\log x} \qquad(x>X).

This is a reformulation of the theorem: its basic content concerns relative error, rather than an exact count or a specified rate of convergence. (terrytao.wordpress.com)

A direct consequence is

π(x)⌊x⌋∼1log⁡x.\frac{\pi(x)}{\lfloor x\rfloor}\sim\frac{1}{\log x}.

Accordingly, the probability that an integer chosen uniformly from 1,…,⌊x⌋1,\ldots,\lfloor x\rfloor is prime is asymptotic to 1/log⁡x1/\log x. This probability tends to zero, even though there are infinitely many primes. The probabilistic interpretation concerns the method of sampling integers, not randomness inherent in the primes themselves. (dlmf.nist.gov)

Equivalent formulations

Let pnp_n denote the nnth prime, with

p1=2,p2=3,p3=5,….p_1=2,\quad p_2=3,\quad p_3=5,\ldots.

An equivalent formulation is

pn∼nlog⁡n.p_n\sim n\log n.

Thus the theorem can describe either the number of primes below a given bound or the approximate size of a prime with a given index. (dlmf.nist.gov)

For proofs, it is often more convenient to count primes with logarithmic weights. The Chebyshev functions are

ϑ(x)=∑p≤xlog⁡p,ψ(x)=∑pk≤xlog⁡p,\vartheta(x)=\sum_{p\leq x}\log p, \qquad \psi(x)=\sum_{p^k\leq x}\log p,

where the second sum includes every prime power pkp^k, with k≥1k\geq1. The theorem is equivalent to either of the statements

ϑ(x)∼x,ψ(x)∼x.\vartheta(x)\sim x, \qquad \psi(x)\sim x.

The contributions from powers with k≥2k\geq2 are asymptotically smaller than xx, so they do not change the leading term. (math.ucdavis.edu)

Using the von Mangoldt function,

Λ(n)={log⁡p,n=pk for a prime p and k≥1,0,otherwise,\Lambda(n)= \begin{cases} \log p,&n=p^k\text{ for a prime }p\text{ and }k\geq1,\\ 0,&\text{otherwise}, \end{cases}

one can write

ψ(x)=∑n≤xΛ(n).\psi(x)=\sum_{n\leq x}\Lambda(n).

This weighted formulation connects prime counting to analytic identities more directly than the unweighted function π(x)\pi(x). (terrytao.wordpress.com)

Historical development

The conjecture emerged from numerical investigations in the late eighteenth century. Carl Friedrich Gauss later recalled recognizing the approximate logarithmic density of primes in 1792 or 1793. Adrien-Marie Legendre published a related conjecture in 1798, proposing an approximation of the form

xAlog⁡x+B.\frac{x}{A\log x+B}.

These investigations identified the correct leading scale before a proof was available. (publications.ias.edu)

In the nineteenth century, Pafnuty Chebyshev established upper and lower bounds of the correct order of magnitude. These showed that prime counting grows on the scale x/log⁡xx/\log x, but did not establish that the ratio tends to exactly 11. Bernhard Riemann introduced a decisive analytic perspective in his 1859 work linking primes to the complex zeros of the zeta function. (math.ucdavis.edu)

Hadamard and de la Vallée Poussin completed the first proofs in 1896 using complex analysis. In 1948, Atle Selberg and Paul Erdős developed elementary proofs, which were published in 1949. Here elementary means that the proofs avoid complex function theory; it does not mean that the arguments are short or easy. (terrytao.wordpress.com)

Analytic proof and the zeta function

The central analytic object is the Riemann zeta function,

ζ(s)=∑n=1∞1ns,Re⁡(s)>1.\zeta(s)=\sum_{n=1}^{\infty}\frac{1}{n^s}, \qquad \operatorname{Re}(s)>1.

The fundamental theorem of arithmetic gives its Euler product:

ζ(s)=∏p(1−p−s)−1.\zeta(s)=\prod_p(1-p^{-s})^{-1}.

This identity encodes prime factorization in a function of a complex variable. Taking a logarithmic derivative yields

−ζ′(s)ζ(s)=∑n=1∞Λ(n)ns,Re⁡(s)>1.-\frac{\zeta'(s)}{\zeta(s)} =\sum_{n=1}^{\infty}\frac{\Lambda(n)}{n^s}, \qquad \operatorname{Re}(s)>1.

Consequently, the analytic behavior of ζ\zeta governs sums involving Λ\Lambda. (terrytao.wordpress.com)

Through analytic continuation, the zeta function extends beyond the region where its defining series converges. It has a simple pole at s=1s=1. The decisive additional fact is that it has no zeros on the line

Re⁡(s)=1.\operatorname{Re}(s)=1.

Together with suitable analytic arguments, this nonvanishing establishes ψ(x)∼x\psi(x)\sim x, and hence the prime number theorem. Conversely, the theorem implies this nonvanishing property. The pole supplies the main term, while zeros control deviations from it. (terrytao.wordpress.com)

Elementary proofs

Selberg’s elementary approach begins with an asymptotic identity known as the Selberg symmetry formula:

∑n≤xΛ(n)log⁡n+∑ab≤xΛ(a)Λ(b)=2xlog⁡x+O(x).\sum_{n\leq x}\Lambda(n)\log n + \sum_{ab\leq x}\Lambda(a)\Lambda(b) = 2x\log x+O(x).

The second sum runs over positive integers a,ba,b with ab≤xab\leq x. The formula couples a weighted prime-power count to products of two such weights. (terrytao.wordpress.com)

Additional estimates turn this relation into control of the error in ψ(x)\psi(x), eventually showing that it is o(x)o(x). The elementary proofs demonstrate that complex analysis is not logically indispensable to the theorem, although it provides a particularly powerful framework for understanding stronger estimates and generalizations. (terrytao.wordpress.com)

More accurate approximations and error terms

A more informative approximation is the logarithmic integral. Using the nonsingular normalization

Li⁡2(x)=∫2xdtlog⁡t,\operatorname{Li}_2(x)=\int_2^x\frac{dt}{\log t},

one has

Li⁡2(x)∼xlog⁡x.\operatorname{Li}_2(x)\sim\frac{x}{\log x}.

It differs by a constant from the conventional principal-value function li⁡(x)\operatorname{li}(x), so this choice does not affect the asymptotic estimates discussed here. (terrytao.wordpress.com)

Repeated integration by parts gives the asymptotic expansion

Li⁡2(x)=xlog⁡x(1+1log⁡x+2!(log⁡x)2+⋯+m!(log⁡x)m)+O ⁣(x(log⁡x)m+2)\operatorname{Li}_2(x) = \frac{x}{\log x} \left( 1+\frac{1}{\log x} +\frac{2!}{(\log x)^2} +\cdots+ \frac{m!}{(\log x)^m} \right) + O\!\left(\frac{x}{(\log x)^{m+2}}\right)

for each fixed nonnegative integer mm. This is an expansion with finitely many retained terms, not a convergent infinite series. Corresponding expansions hold for π(x)\pi(x). (dlmf.nist.gov)

A classical unconditional estimate, written using big-O notation, is

π(x)=Li⁡2(x)+O ⁣(xe−clog⁡x)\pi(x)=\operatorname{Li}_2(x) + O\!\left(xe^{-c\sqrt{\log x}}\right)

for some constant c>0c>0. The Vinogradov–Korobov estimate improves this to

π(x)=Li⁡2(x)+O ⁣(xexp⁡ ⁣[−c(log⁡x)3/5(log⁡log⁡x)−1/5]).\pi(x)=\operatorname{Li}_2(x) + O\!\left( x\exp\!\left[ -c(\log x)^{3/5}(\log\log x)^{-1/5} \right]\right).

Both quantify convergence far more precisely than the basic theorem. (dlmf.nist.gov)

The Riemann hypothesis asserts that all nontrivial zeta zeros have real part 1/21/2. It would imply the substantially stronger estimate

π(x)=Li⁡2(x)+O(xlog⁡x).\pi(x)=\operatorname{Li}_2(x)+O(\sqrt{x}\log x).

The prime number theorem itself requires a weaker zero-free statement and does not depend on assuming the Riemann hypothesis. (terrytao.wordpress.com)

Arithmetic progressions

An important generalization concerns primes in residue classes, expressed through modular arithmetic. For fixed positive integer qq and integer aa satisfying gcd⁡(a,q)=1\gcd(a,q)=1, define

π(x;q,a)=#{p≤x:p≡a(modq)}.\pi(x;q,a)=\#\{p\leq x:p\equiv a\pmod q\}.

Then

π(x;q,a)∼1φ(q)xlog⁡x,\pi(x;q,a)\sim \frac{1}{\varphi(q)}\frac{x}{\log x},

where Euler’s totient function φ(q)\varphi(q) counts the residue classes relatively prime to qq. Thus primes are asymptotically equally distributed among the admissible classes for a fixed modulus. (dlmf.nist.gov)

The requirement that qq remain fixed matters: uniform estimates when the modulus grows with xx require additional results. Analytic proofs of this generalization use Dirichlet LL-functions, extending the role played by the zeta function in the ordinary theorem. (terrytao.wordpress.com)

Consequences and limitations

Subtracting the theorem’s estimates at xx and AxAx, for any fixed A>1A>1, gives

π(Ax)−π(x)∼(A−1)xlog⁡x.\pi(Ax)-\pi(x)\sim\frac{(A-1)x}{\log x}.

This derived statement counts primes in intervals whose length is a fixed proportion of their starting point. It does not automatically provide comparable estimates in much shorter intervals, because the errors in two cumulative counts can exceed the number being sought. (terrytao.wordpress.com)

Likewise, the approximation 1/log⁡x1/\log x describes a large-scale frequency, not the probability of primality for an unspecified individual integer. The theorem neither determines exact prime locations nor establishes independence between primality at neighboring integers. Questions about prescribed patterns, such as pairs of primes differing by 22, require information beyond an asymptotic count of single primes. (terrytao.wordpress.com)

References

  1. DLMF: §27.2 Functionsdlmf.nist.gov
  2. DLMF: §27.12 Asymptotic Formulas: Primesdlmf.nist.gov
  3. 246B, Notes 4: The Riemann zeta function and the prime number theoremterrytao.wordpress.com
  4. The Prime Number Theoremmath.ucdavis.edu
  5. The Prime Number Theorempublications.ias.edu
  6. Not Always Buried Deep: A Second Course in Elementary Number Theorypollack.uga.edu
  7. Structure and randomness in the prime numbersterrytao.wordpress.com
  8. Expository articlesterrytao.wordpress.com
  9. A Banach algebra proof of the prime number theoremterrytao.wordpress.com
  10. 254A, Notes 2: Complex-analytic multiplicative number theoryterrytao.wordpress.com