The Distribution of Primes
10.1 The Prime Counting Function
Section titled “10.1 The Prime Counting Function”Definition. counts the primes : , , .
The primes become sparser on average but never stop. The density near behaves like ; the heuristic at the heart of everything below: a random integer near is prime with “probability” about .
10.2 Bertrand’s Postulate
Section titled “10.2 Bertrand’s Postulate”Theorem (Bertrand). For every integer there is a prime with .
Proof idea (Erdős’s elementary argument). Consider the prime factorisation of the central binomial coefficient ; its size ( by elementary bounds) versus the product of prime powers below forces at least one prime with to divide it - such a prime divides the coefficient exactly once, contributing a large factor.
Immediate corollaries examinable at this level: there is always a prime between and , so for the -th prime, and hence .
10.3 Dirichlet’s Theorem
Section titled “10.3 Dirichlet’s Theorem”Theorem (Dirichlet, 1837). If , the arithmetic progression contains infinitely many primes.
Examples: infinitely many primes (there is also an elementary Euclid-style proof for this special case); infinitely many primes ending in …001 (i.e. ). The general theorem needs complex analysis (L-functions); quote it, do not prove it, unless the course covers Dirichlet characters.
Special case worth knowing: the Euclid-style proof of infinitely many primes : suppose are all of them, set ; every prime factor of is (products of numbers are ) and cannot be among the , contradiction.
10.4 The Prime Number Theorem
Section titled “10.4 The Prime Number Theorem”Theorem (Hadamard, de la Vallée Poussin, 1896).
Consequences quotable at this level:
- The -th prime satisfies .
- The average gap between consecutive primes near is about .
- The probability that a random integer near is prime is about .
Refinements: the logarithmic integral is a better approximation, and the Riemann Hypothesis asserts the error is ; the most famous open problem in mathematics.
10.5 Exam-Level Estimates
Section titled “10.5 Exam-Level Estimates”Without the PNT, elementary bounds still yield marks:
- Euclid-style lower bound on : (Bertrand repeatedly).
- Euler’s theorem: ; proved below; the sketch above becomes a theorem.
- Typical structured question: use data to estimate against the true value 78498, and comment on the systematic overestimate of the naive estimate versus .
The divergence of the sum of reciprocal primes
Section titled “The divergence of the sum of reciprocal primes”Theorem (Euler, 1737). .
Proof. The proof is a rigourisation of the Euler product, and it is worth doing in full because the product is the ancestor of the Riemann zeta function.
Step 1: the finite product identity. For any and any finite set of primes ,
where is taken to be all primes . Why: expanding each factor as the geometric series , the product expands into over all multisets of the primes in ; and every factors into primes those in , so its reciprocal is one of the terms of that expansion. Every term of the harmonic sum appears in the expansion, and the expansion has only non-negative terms, so it dominates.
Step 2: the product is at most the harmonic series. The expansion
produces exactly the reciprocals of the numbers whose prime factors all lie in ; every one of them a positive integer, each appearing once. So the expanded sum is a sub-sum of the harmonic series, and since all terms are positive,
(Cleaner than bounding: the sub-sum statement is all Step 4 needs, and it is exact.)
Step 3: the logarithm computation. Take logarithms of the finite product:
expanding each . The terms are exactly ; the terms are bounded uniformly in :
using for and the telescoping of . So
Step 4: assemble. The harmonic series diverges, so ; by Step 2 the product tends to infinity with it; by Step 3 the sum of reciprocal primes is at least (log of the product) minus 1, hence diverges.
The theorem is stronger than infinitude: not only are there infinitely many primes, they are dense enough that their reciprocals diverge; while the reciprocal squares converge (by comparison with ). Primes are, in this precise sense, much more common than squares.
The same product is the Riemann zeta function’s Euler product , and the PNT is the statement about how ‘s analytic behaviour controls . The divergence proved above is the edge of that analytic theory.
10.5 Exam-Level Estimates
Section titled “10.5 Exam-Level Estimates”10.6 Common Pitfalls
Section titled “10.6 Common Pitfalls”- is an asymptotic statement: relative error tends to 0, but the absolute error grows.
- Bertrand gives a prime below , not below for fixed .
- Dirichlet’s theorem requires : no primes beyond itself, and primes beyond 2; coprimality is necessary for infinitude.
See Also
Section titled “See Also”10.x Worked Estimate
Section titled “10.x Worked Estimate”Estimate using and : against the true ; is dramatically closer. Comment on why stays closer for every measurable .
The shifted approximation is better over all practical ranges: at the naive estimate overshoots by about 6%, the shifted one by under 0.1%. Typical structured questions ask you to compute both estimates and to explain why the logarithmic integral dominates.
A second standard question type: given and , estimate the number of primes between 100 and 200 as , and note that direct counting gives 21; interval estimates are already accurate at this size. Close by stating Bertrand: there is always a prime in any such interval of the form .
A closing remark for exams: quote -style data accurately if the question supplies it, and never round intermediate logarithms; the marker scheme penalises premature rounding far more than the final answer. A useful sanity check for estimates: increases by exactly 1 at each prime, so any approximation must stay constant between primes; quote this when explaining why pointwise error is unavoidable.