Prime Number Theorem

The Prime Number Theorem (PNT) describes the asymptotic distribution of prime numbers. It is one of the deepest results in number theory, connecting the discrete world of primes to continuous analysis.

Statement

Let π⁡(x) pi of x denote the number of primes at most x. The Prime Number Theorem states:

π⁢(x)∼xln⁡xas x→∞ pi times x tilde x over l n x as x right arrow infinity

Equivalently, the n n-th prime pn p sub n satisfies pn~n⁢ln⁡n p sub n tilde n l n n.

Better Approximation

The logarithmic integral gives a more accurate approximation:

π⁢(x)≈Li⁡(x)=∫2xdtln⁡t pi times x almost equals Li of x equals the integral from 2 to x of the fraction with numerator d t and denominator l n t

Li⁢(x) Li times x is closer to π⁢(x) pi times x than xln⁡x x over l n x and captures the distribution of primes more precisely.

Historical Development

Conjectured by Gauss and Legendre around 1800 1800 based on numerical evidence. Proved independently by Hadamard and de la Vallee Poussin in 1896 1896 using complex analysis.

Connection to Riemann Zeta Function

The proof uses properties of the Riemann zeta function:

ζ⁡(s)=∑n=1∞1ns()=∏p11−p−s() zeta of s equals the sum from n equals 1 to infinity of the fraction with numerator 1 and denominator n raised to the s of open paren close paren power equals the product over p of the fraction with numerator 1 and denominator 1 minus p raised to the negative s of open paren close paren power

The key step is proving ζ⁡(s) zeta of s has no zeros on the line R⁢e⁡(s)=1 R e of s equals 1.

Elementary Proofs

Erdos and Selberg gave elementary proofs in 1949 1949 that avoid complex analysis. However, these proofs are not simpler; they replace analysis with intricate arithmetic arguments.

Error Terms

The Riemann Hypothesis implies the best possible error bound:

π⁢(x)=Li⁡(x)+O⁢(x⁢ln⁡x) pi times x equals Li of x plus O times open paren the square root of x l n x close paren

Without RH, the best proven error is O⁢(x⁢exp⁡(−c⁢ln⁡x)) O times open paren x the exp of open paren negative c the square root of l n x close paren close paren.

Prime Density

The density of primes near x x is approximately 1ln⁡x 1 over l n x. A random integer near x x has probability about 1ln⁡x 1 over l n x of being prime.

Chebyshev Functions

The Chebyshev functions are often easier to work with:

θ⁡(x)=∑p≤xln⁡p,ψ⁡(x)=∑pk≤xln⁡p theta of x equals the sum over p is less than or equal to x of l n p comma psi of x equals the sum over p to the k-th power is less than or equal to x of l n p

PNT is equivalent to ψ⁡(x)∼x psi of x tilde x or θ⁡(x)∼x theta of x tilde x.

Explicit Formula

Riemann discovered an exact formula relating pi(x) to the zeros of zeta(s):

ψ⁡(x)=x−∑ρxρρ−ln⁡2⁢π−12⁢ln⁡(1−x−2) psi of x equals x minus the sum over rho of the fraction with numerator x to the rho-th power and denominator rho minus l n 2 pi minus one half l n of open paren 1 minus x to the negative 2 power close paren

The sum is over all non-trivial zeros rho of zeta. Each zero contributes an oscillation to the prime distribution.

Primes in Arithmetic Progressions

Dirichlet's theorem: there are infinitely many primes in any arithmetic progression a+n⁢d a plus n d with gcd⁡(a,d)=1 the gcd of open paren a comma d close paren equals 1.

The PNT for arithmetic progressions gives the density: primes are equidistributed among residue classes.

π⁢(x;d,a)∼1ϕ⁡(d)⁢xln⁡x pi times open paren x semicolon d comma a close paren tilde 1 over phi of d x over l n x

Numerical Evidence

At x=109 x equals 10 to the ninth power: π⁢(x)=50,847,534 pi times x equals 50,847,534 while xln⁡x=48,254,942 x over l n x equals 48,254,942 and Li⁢(x)=50,849,235 Li times x equals 50,849,235. Li⁢(x) Li times x is within 1700 1700 of the true count.

Siegel-Walfisz Theorem

Gives uniform estimates for primes in progressions: π⁢(x;d,a) pi times open paren x semicolon d comma a close paren has the expected density for d d up to (ln⁡x)A open paren l n x close paren to the A power for any fixed A A.

Bombieri-Vinogradov Theorem

A powerful averaging result: primes are equidistributed in progressions on average, for moduli up to x1/2−ε x raised to the 1 divided by 2 minus epsilon power. This substitutes for the generalized Riemann hypothesis in many applications.

Proof Sketch

  1. Express ψ⁡(x) psi of x in terms of ζ⁡(s) zeta of s using a Mellin transform.

  2. Shift the contour of integration to pick up contributions from poles and zeros.

  3. Show ζ⁡(s) zeta of s has no zeros with Re⁡(s)=1 real s equals 1 using analytic properties.

  4. The contribution from near Re⁡(s)=1 real s equals 1 gives the main term x x.

Related Conjectures

Twin prime conjecture: infinitely many primes p p with p+2 p plus 2 also prime.

Goldbach conjecture: every even number >2 is greater than 2 is a sum of two primes.

These remain open but sieve methods give partial results.

Mertens Theorems

Related results about prime sums and products:

∑p≤x1p=ln⁡ln⁡x+M+o⁡(1) the sum over p is less than or equal to x of 1 over p equals l n l n x plus M plus o of 1

∏p≤x(1−1p)∼e−γln⁡x the product over p is less than or equal to x of open paren 1 minus 1 over p close paren tilde the fraction with numerator e raised to the negative gamma power and denominator l n x

Here M M is Meissel-Mertens constant and gamma is Euler-Mascheroni constant.

Applications

Cryptography: estimating the density of primes for key generation.

Complexity theory: analyzing algorithms that depend on prime distribution.

Analytic number theory: foundation for studying prime gaps, prime races, and arithmetic functions.

Prime Gaps

PNT implies the average gap between consecutive primes near x x is about ln⁡x l n x. The distribution of gaps is related to deeper conjectures.

Bounded Gaps (Zhang-Maynard)

Yitang Zhang proved in 2013 2013 that there are infinitely many pairs of primes differing by at most 70 70,000 000,000 000. This was improved to 246 246 by the Polymath project.

Generalizations

PNT generalizes to other number fields (Dedekind zeta function), function fields, and algebraic varieties (Weil conjectures).

Probabilistic Interpretation

Cramér's model treats primes as random with density 1ln⁡n 1 over l n n. This gives surprisingly accurate predictions for many prime statistics.

Summary

The Prime Number Theorem reveals that primes thin out logarithmically but remain infinitely abundant. Its proof connects number theory to complex analysis in a profound way.

Key formula: π⁢(x)∼xln⁡x pi times x tilde x over l n x, meaning roughly xln⁡x x over l n x primes exist up to x x.

The connection to the Riemann zeta function and its zeros remains central to understanding primes and drives research on the Riemann Hypothesis.