Combinatorics and discrete mathematics
The Green–Tao theorem
The primes contain arithmetic progressions of every finite length, proved in 2004.
IntuitionIntuition: structure inside a set that keeps thinning out
Primes get rarer and rarer: among the first integers only about are prime, a fraction that shrinks to 0 as grows. Szemerédi's theorem needs a positive fraction to guarantee arithmetic progressions, so it says nothing about the primes directly. Yet in 2004 Ben Green and Terence Tao proved that the primes contain arithmetic progressions of every finite length anyway — three primes evenly spaced, then a hundred, then any number you like. The trick is not to abandon Szemerédi's theorem but to find a bigger, well-behaved set in which the primes sit with positive relative density, and transfer the density argument to that setting.
UndergraduateStatement and why density zero is the obstacle
This is the theorem: writing for the set of primes, for every length there exist and such that are all prime. In fact Green and Tao prove more — the primes contain a positive relative density of -term progressions among all progressions of that length, not just at least one.
Here counts primes up to , and the prime number theorem says — so the density of primes among tends to 0. Szemerédi's theorem, which needs a fixed positive density, therefore cannot be applied to directly: a genuinely new argument was needed.
| Aspect | What is known | Source / year |
|---|---|---|
| Existence for every length | Proved: contains a -term progression for every | Green–Tao, 2004 |
| Longest one explicitly found | 27 primes in arithmetic progression, found by distributed computer search | PrimeGrid, 2019 |
AdvancedProof idea: transference to a pseudorandom majorant
For every , the set of primes contains a -term arithmetic progression; moreover has positive relative density among such progressions, not merely a single example.
Why is it true?
The obstacle is density zero, so the theorem cannot follow from Szemerédi's theorem applied to directly. Green and Tao's insight was that Szemerédi-type density arguments still work for a set of relative density inside a larger, sufficiently pseudorandom set — even if that set is itself sparse in — as long as the ambient set behaves randomly enough for counting arguments to carry over.
Proof
Step 1 (the obstruction). The von Mangoldt function (equal to when and 0 otherwise) is the natural weight for detecting primes, with average size . But itself is not bounded, and has density 0, so no classical density theorem applies to it directly.
Step 2 (a pseudorandom majorant). Using ideas from Goldston–Yıldırım-type sieve weights, Green and Tao construct a measure with that dominates the primes, for a constant , and that is pseudorandom: it satisfies precise linear-forms and correlation conditions modeled on what a genuinely random set of the same density would satisfy.
Step 3 (relative Szemerédi theorem). Green and Tao prove that any function with positive relative density, , still contains the expected density of -term progressions, provided is pseudorandom. The proof decomposes into a bounded, structured part plus a part that is small in the Gowers uniformity norms relative to ; the uniform part contributes negligibly to the progression count by a generalized von Neumann theorem, so the structured part alone must already account for the expected progressions — exactly as in the classical hypergraph-regularity proof of Szemerédi's theorem, but relativized to .
Step 4 (putting it together). Verifying that the Goldston–Yıldırım-type really is pseudorandom (checking the linear-forms and correlation conditions using standard prime-counting estimates) lets Step 3 apply to , which has positive relative density since . This yields a positive relative density of -term progressions weighted by , and hence — after removing the negligible contribution from prime powers — an honest -term progression of primes, for every .
There are infinitely many 3-term arithmetic progressions of primes; in fact the number of such progressions with all terms is asymptotically for an explicit constant .
Why is it true?
This special case predates Green–Tao by 65 years and was settled by van der Corput in 1939 using the Hardy–Littlewood circle method directly on the primes, with no need for the transference machinery required for general . It shows why was long tractable by classical analytic number theory while longer progressions were completely open until 2004.
Proof
Step 1 (weighted count via exponential sums). Write . The weighted count of 3-term progressions with all terms equals by orthogonality of the exponential.
Step 2 (major arcs). Near rationals with small, is well approximated using the prime number theorem in arithmetic progressions; summing these contributions gives the Hardy–Littlewood main term , where the singular series is a positive constant depending only on local (mod ) densities of primes.
Step 3 (minor arcs). Away from rationals with small denominator, Vinogradov's estimates bound by for any fixed , using cancellation in the sum over primes; integrating this bound over the minor arcs shows their total contribution is — negligible next to the major-arc main term.
Step 4 (conclusion). Since the major-arc main term dominates the negligible minor-arc error, the weighted count of 3-term progressions grows like , so there are infinitely many (and asymptotically many) 3-term arithmetic progressions of primes — a full 65 years before the general case was settled.
UndergraduateReal-World Applications and Worked Examples
The transference principle invented for this proof — moving a theorem from dense sets to sparse sets that sit inside a pseudorandom majorant — became a general tool used far beyond arithmetic progressions in primes: it underlies Tao and Ziegler's 2008 extension to polynomial progressions in the primes, informs the sieve-theoretic machinery behind the bounded-gaps-between-primes breakthroughs of Zhang and Maynard, and has analogues in theoretical computer science (dense-model theorems, pseudorandomness, and complexity-theoretic regularity). On the computational side, distributed search projects such as PrimeGrid use the primorial-divisibility constraint that comes out of the local factors in the theorem to narrow the search space by many orders of magnitude when hunting for record-length progressions.
Example: A 5-term arithmetic progression of primes, and why its difference is a multiple of 6
Verify that is a 5-term arithmetic progression of primes, and explain why any 5-term progression of primes starting at a prime must have common difference divisible by .
Solution
Step 1: the consecutive differences of are all , and each of the five numbers has no divisor up to its square root (), so all five are prime — a genuine 5-term progression with .
Step 2: for any prime (so ), if then as runs from 0 to 4 the five terms run through at least distinct residues modulo , so one of them is divisible by .
Step 3: if , all five terms are strictly greater than , so a term divisible by would be composite — impossible. Hence for each , i.e. . (In the progression starts at itself, which is allowed to be divisible by 5, so only is required there.)
Example: The record 27-term progression of primes and why 23# appears in its step size
The longest explicitly known arithmetic progression of primes has 27 terms, found by Rob Gahan and PrimeGrid in 2019: for , where is the primorial of 23. Explain why the common difference must be a multiple of .
Solution
Step 1: let be any prime, and suppose did not divide the common difference . Since , the 27 terms for would run through all residue classes modulo , so at least one term would be divisible by .
Step 2: all 27 terms in this progression are 18-digit numbers, far larger than 23, so any term divisible by would be composite — impossible.
Step 3: therefore every prime must divide , which means the product of all primes up to 23 — the primorial — divides . Building into the step size from the start is how computer searches restrict to candidates that automatically pass every small-prime divisibility test.
What does the Green–Tao theorem prove about the set of prime numbers?
Why couldn't Szemerédi's theorem be applied directly to the primes, and what replaces the missing density hypothesis in Green–Tao's proof?
If is a 5-term arithmetic progression of primes with , what must divide the common difference ?
As of 2026, what is the length of the longest explicitly known arithmetic progression of primes, and why haven't much longer ones been written down?
References
- Ben Green, Terence Tao (2008). The primes contain arbitrarily long arithmetic progressions · arXiv:math/0404188
- Terence Tao, Tamar Ziegler (2008). The primes contain arbitrarily long polynomial progressions · arXiv:math/0610050
- David Conlon, Jacob Fox, Yufei Zhao (2015). A relative Szemerédi theorem · arXiv:1305.5440