Skip to content
Home

Prime number theorem

A concise account of the prime number theorem: its statement π(x) ~ x / ln x, historical development, main consequences for prime distribution, refinements and connections to the Riemann hypothesis.

The prime number theorem is a central result in number theory that describes the asymptotic distribution of prime numbers. Informally, it captures the intuitive fact that primes become sparser as integers grow larger: the chance that a randomly chosen large integer n is prime is about 1 divided by its natural logarithm. The theorem formalizes this by comparing the prime-counting function π(x) (the number of primes ≤ x) with functions built from logarithms and integrals.

Image gallery

1 Image

Statement and common forms

The standard form of the theorem asserts that π(x) is asymptotic to x / ln x, written π(x) ~ x / ln x. Equivalently, the proportion of integers up to x that are prime tends to 1 / ln x as x → ∞. A frequently used refinement replaces x / ln x by the logarithmic integral li(x), which gives a closer numerical approximation for most ranges of x. From these relations one deduces that the average gap between consecutive primes near x is about ln x.

History and proof ideas

Conjectures linking primes and logarithms date back to late 18th-century observations: a young Carl Friedrich Gauss and independently Adrien-Marie Legendre proposed that primes thin out roughly in proportion to 1 / ln x. The theorem was proved in 1896 by Jacques Hadamard and Charles-Jean de La Vallée Poussin, independently, using complex-analytic properties of the Riemann zeta function. Their arguments relied on showing the zeta function has no zeros on the line Re(s)=1, a fact closely tied to the distribution of primes and to results about natural logarithms that appear in explicit formulas.

Consequences and examples

One practical consequence is a simple heuristic for prime density: among numbers with a fixed number of digits, primes are rarer as the digit count increases because ln(10^k) grows linearly with k. For instance, among positive integers with up to 1000 decimal digits, roughly one in 2 000–3 000 numbers is prime; doubling the number of digits roughly halves the density. More generally, the theorem underpins many probabilistic models and heuristics about primes, and it supplies baseline estimates used in algorithms and cryptography.

Refinements and open questions

Although π(x) ~ x / ln x gives the leading order behavior, much research focuses on the error term: how close π(x) is to x / ln x or li(x) for finite x. Improvements of error bounds are deeply connected to the location of zeros of the Riemann zeta function. The famous Riemann hypothesis would imply substantially stronger and explicit error estimates. Related topics include the study of prime gaps, zero-free regions for zeta, and alternate approximations.

Further reading and context

  • Introductory surveys and textbooks provide accessible derivations and numerical illustrations; see general references in analytic number theory and expository articles (prime number theorem overview).
  • Connections to probability and heuristic models of primes are discussed in many modern treatments (probability and primes).
  • For historical accounts and original proofs, consult sources on Gauss, Legendre and the 19th-century developments (history of logarithms and primes, Gauss).

Readers seeking technical details can follow paths from elementary formulations to complex-analytic proofs, and then to advanced topics that tie the prime number theorem to deep conjectures in mathematics (primes, logarithmic functions, number theory).

Questions and answers

Q: What is the prime number theorem?

A: The prime number theorem is a theorem from number theory that explains how prime numbers are distributed across the number range.

Q: Are prime numbers evenly distributed across the number range?

A: No, prime numbers are not distributed evenly across the number range.

Q: What does the prime number theorem formalize?

A: The prime number theorem formalizes the idea that the probability of hitting a prime number between 1 and a given number becomes smaller as numbers grow.

Q: What is the probability of hitting a prime number between 1 and a given number?

A: The probability of hitting a prime number between 1 and a given number is about n/ln(n), where ln(n) is the natural logarithm function.

Q: Is the probability of hitting a prime number with 2n digits greater than the probability of hitting a prime number with n digits?

A: No, the probability of hitting a prime number with 2n digits is about half as likely than with n digits.

Q: Who proved the prime number theorem?

A: Jacques Hadamard and Charles-Jean de La Vallée Poussin proved the prime number theorem in 1896, over a century after Gauss suspected a link between prime numbers and logarithms in 1793.

Q: What is the average gap between consecutive prime numbers among the first N integers?

A: The average gap between consecutive prime numbers among the first N integers is roughly ln(N).

Related articles

Author

AlegsaOnline.com Prime number theorem

URL: https://en.alegsaonline.com/art/79127

Share