A Breakthrough in Number Theory
Prime Gaps and the Twin Prime Conjecture
The twin prime conjecture
A prime number is an integer greater than 1 whose only positive divisors are 1 and itself. A twin prime pair consists of two primes that differ by 2, such as 11 and 13 or 17 and 19.
The twin prime conjecture states that there are infinitely many twin prime pairs. It remains unproved.
Primes continue to occur among arbitrarily large numbers, but they become less frequent. Twin prime pairs appear less often still. Finding many examples—even extremely large ones—cannot establish the conjecture: checking any finite range cannot show that twin primes continue forever.
Prime density and the heuristic prediction
The prime number theorem and average prime gaps
The prime number theorem says that the probability a large number near N is prime is approximately
where ln denotes the natural logarithm. Equivalently, the number of primes up to N is approximately N/lnN.
This suggests that the average gap between nearby primes near N is roughly lnN. For example, the average gap near 100 is approximately ln100≈4.6, while near 1000 it is approximately ln1000≈6.9. Since lnN increases without bound, the average gap grows as numbers get larger, although it grows slowly.
An increasing average gap does not rule out infinitely many gaps of size 2. It only says that small gaps become relatively unusual on average.
Estimating the chance of a twin prime pair
A first approximation treats primality at nearby positions as if the events were independent. Under that simplification, the chance that both N and N+2 are prime is approximately
The approximation replaces ln(N+2) with lnN, which is reasonable for large N. The independence assumption is not literally correct, however: divisibility patterns create dependencies between nearby numbers.
Hardy and Littlewood refined the estimate to account for these local divisibility patterns. Their prediction for the number of twin prime pairs up to N is approximately
which grows asymptotically like
Here, C2 is the twin-prime constant,
where the product is taken over primes p greater than 2.
The correction factor reflects the fact that a pair of numbers must avoid certain divisibility obstructions. For instance, apart from the exceptional pair involving 2, two numbers that differ by 2 cannot both be prime if they are both divisible by 2.
Heuristics are not proofs
The Hardy–Littlewood prediction is a heuristic: a mathematically informed estimate of what should happen, not a proof that it does happen. It predicts that the number of twin primes keeps increasing, but it does not guarantee that there are infinitely many.
A finite collection of examples, however large, cannot prove an infinite claim. A proof must establish a conclusion that holds no matter how far out along the number line one goes.
Sieves and the inclusion–exclusion principle
The Sieve of Eratosthenes
The Sieve of Eratosthenes finds primes by removing multiples of smaller primes:
Begin with the integers in a chosen range.
Remove 1, which is not prime.
Keep the first remaining prime and remove its multiples.
Repeat with the next remaining prime.
To find primes up to N, it is enough to sieve using primes no larger than N. Any composite number at most N has a prime factor no larger than N. For example, a multiple of 11 below 100 has already been removed by a smaller prime unless it is 112=121, which lies outside that range.
The sieve can also be pictured as primes marking their multiples: the prime 2 marks every second integer, the prime 3 every third, and so on. Integers that escape all the relevant marks are prime.
Counting survivors with inclusion–exclusion
A sieve can be used not only to identify primes but also to count numbers that survive. The basic counting idea is:
Start with the total number of candidates.
Subtract multiples of each sieving prime.
Add back numbers subtracted twice, such as multiples of two different sieving primes.
Subtract numbers added back too many times, and continue alternating.
This is the inclusion–exclusion principle. If the sieving primes are 2, 3, 5, and 7, for example, a number divisible by both 2 and 3 is removed twice in the first subtraction step, so it must be added back. Numbers divisible by three of the sieving primes require another correction.
Ignoring rounding for a moment, each prime p leaves a fraction 1−1/p of the candidates. This leads to the familiar approximate sieve expression
where P is the largest sieving prime. With the appropriate sieving range and error control, this gives insight into how many integers avoid divisibility by small primes.
Adapting the sieve to twin primes
To search for pairs n and n+2 that are both prime, a sieve must eliminate a starting value n whenever either member of the pair is divisible by a sieving prime p.
For an ordinary prime search, divisibility by p excludes about one residue class out of p. For a twin-prime search, both n and n+2 must avoid divisibility by p, so typically two residue classes must be excluded. This helps explain why the predicted count has a factor resembling
for primes p>2, with the special obstruction from p=2 handled separately.
This modified sieve produces a main term with the same general scale as the Hardy–Littlewood prediction: roughly N/(lnN)2. The central difficulty is not producing a plausible main term; it is proving that the errors are small enough to ensure the true count is positive.
Why straightforward sieving runs into trouble
Rounding errors multiply
A sieve count often involves terms such as the number of multiples of a product of sieving primes below N. Such counts involve rounding down. Each individual rounding error may be at most 1, but inclusion–exclusion produces many terms.
With K sieving primes, there can be about 2K subsets of primes contributing terms to the inclusion–exclusion sum. Thus, even small errors can accumulate rapidly as more primes are used. For the twin-prime sieve, the accounting is more complicated still, because each sieving prime can exclude two residue classes.
Main terms and error terms
Sieve calculations have two competing parts:
The main term is the expected leading contribution, which for twin primes has scale roughly N/(lnN)2.
The error term accounts for inaccuracies in the count, including accumulated rounding and distribution errors.
To prove there are infinitely many twin primes by counting them, the lower bound for the true count must remain positive and grow without limit. If the error term is as large as, or larger than, the main term, the resulting lower bound may be negative. A negative lower bound says nothing useful about whether the count is positive.
This is a common challenge in analytic number theory: it is not enough to identify a plausible main term; one must also prove that the error is smaller than that main term.
Brun’s sieve and Chen’s theorem
Brun’s compromise
Brun’s approach addressed the error problem by sieving less aggressively. Instead of sieving all the way to the square root of the range, a sieve can stop at a smaller threshold. Fewer sieving primes mean fewer inclusion–exclusion terms and better control of accumulated errors.
The trade-off is that some numbers survive even though they are composite. Such survivors may have several prime factors. Brun’s result showed that infinitely many pairs separated by 2 exist for which each number has at most nine prime factors. This does not prove that both numbers are prime, but it demonstrates that pairs with very few prime factors occur infinitely often.
The broad strategy is to balance two competing goals:
Sieve far enough to eliminate many composite candidates.
Stop early enough that the accumulated errors can still be controlled.
Chen’s strengthening
Subsequent improvements reduced the number of possible prime factors in the surviving numbers. Chen Jingrun proved that there are infinitely many primes p for which p+2 has at most two prime factors.
This means that infinitely often, either p+2 is itself prime or it is a product of two primes, with prime factors counted with multiplicity. The result is often described as showing that infinitely many primes p have p+2 either prime or semiprime.
Chen’s theorem is remarkably close in form to the twin prime conjecture, but it does not establish that p+2 is always prime in these pairs.
A different goal: bounded gaps between primes
From a gap of 2 to any fixed bound
Instead of insisting that two primes differ by exactly 2, mathematicians can ask whether there is some fixed number B such that infinitely many consecutive primes differ by at most B.
A bounded prime gap result proves that such a constant exists:
The constant B need not be 2. Proving a bounded gap is weaker than proving the twin prime conjecture, but it is still a major result: the average prime gap grows like lnN, yet bounded-gap results show that some gaps remain below a fixed ceiling infinitely often.
The GPY averaging strategy
The Goldston–Pintz–Yıldırım approach can be understood using a finite set of offsets, or “slots,” such as
For each starting value n, the corresponding translated set is
The diameter of a set of offsets is the difference between its largest and smallest elements. In this example the diameter is 6. If two of the translated values are prime for infinitely many choices of n, then infinitely many pairs of primes lie within a gap of at most 6.
The method does not try to locate every prime individually. Instead, it estimates how many primes the translated set catches on average as the starting value ranges over a large interval.
If the average number of primes caught per starting value exceeds 1, then at least one starting value must catch two or more primes. More generally, an average greater than 1 forces at least one position to have a count above 1, because every position could not have a count of at most 1 while the overall average exceeded 1.
Applying the same reasoning to arbitrarily large ranges yields prime pairs within the same fixed diameter at arbitrarily large locations. That establishes infinitely many bounded gaps.
Why weighting is necessary
A simple unweighted average gives equal importance to every starting value. But some starting values are less likely to produce primes in the selected offsets. For example, if all the numbers in a translated set are forced to be even, then they cannot all be prime except in the special case involving the prime 2.
The GPY method therefore uses weights. Starting positions that are less likely to contain primes receive less weight, while more promising positions receive more. This creates a weighted average intended to reveal prime-rich translations.
The key difficulty is determining how primes are distributed across arithmetic progressions. An arithmetic progression consists of numbers separated by a fixed step, such as
with step size 4. Estimating prime counts in many different progressions is essential to analyzing the weights.
Level of distribution and the one-half barrier
What the level of distribution measures
Results about primes in arithmetic progressions are known to hold reliably, on average, up to certain sizes of the step. This range is described by the level of distribution, often denoted by θ.
A level θ roughly means that the available average estimates can be used for progression moduli up to about Xθ when studying primes in a range of size X.
A widely available theorem gives level
It was believed that a higher level should hold, but this was not known unconditionally. Under the original GPY setup, the attainable weighted average was bounded in relation to 2θ. At θ=1/2, this reaches the threshold of 1 but does not cross it. Without an average above 1, the method cannot force two primes into one translated set.
This limitation motivated efforts to prove stronger distribution results or to alter the method so that it no longer depended on crossing the one-half threshold.
Zhang’s breakthrough
Extending the level slightly beyond one-half
Yitang Zhang found a way to focus on a special class of progression step sizes, built only from small prime factors. By reorganizing the error terms, he could make many of them cancel. This allowed him to push the effective level of distribution slightly beyond 1/2, by a small amount described in the source as 1/584.
That small improvement was enough to cross the GPY threshold and prove a bounded-gap result unconditionally. Zhang’s initial result showed that infinitely many prime pairs differ by no more than 70 million.
The crucial advance was not proving the twin prime conjecture. It was proving that some fixed finite bound works infinitely often, with no unproved conjecture assumed.
Refinements of the initial bound
Once bounded gaps had been proved, other mathematicians improved the numerical bound using refinements of the method. The stated progression of unconditional bounds was:
Zhang’s initial bound: 70 million.
Subsequent Polymath improvements: 4,680.
Maynard’s initial bound: 600.
The bound reported in the source: 246.
The particular constant is not the central conceptual result. The major achievement is that a fixed bound exists at all; reducing the bound is a separate optimization problem.
Maynard’s approach and bounded clusters of primes
Avoiding the one-half barrier
James Maynard developed a different sieve strategy. Rather than requiring the level of distribution to pass 1/2, the method could succeed with any positive level, given a sufficiently large set of offsets.
In the description of the method, the achievable weighted average grows roughly with
where K is the number of slots in the chosen set. The precise method involves detailed sieve weights, but the key point is that the number of slots can be increased to make the approach effective even when θ is small and positive.
This showed that the one-half barrier was a limitation of the earlier method, not a fundamental boundary on all approaches to bounded prime gaps.
More than two primes in a bounded interval
Maynard’s method can also force more than two primes into a bounded interval. For any fixed desired number of primes, the method can establish a sufficiently large fixed interval that contains at least that many primes infinitely often. The required interval bound depends on how many primes are sought.
This is stronger than a result about a single prime pair in one important sense: it guarantees infinitely many clusters containing several primes, although it does not by itself establish that any particular two of them differ by exactly 2.
Conditional improvements
Unconditional results are proved without assuming an unproved conjecture. Some stronger bounds can be obtained conditionally, by assuming additional statements about the distribution of primes.
The Elliott–Halberstam conjecture predicts more uniform distribution of primes across arithmetic progressions than is currently established unconditionally. Under this assumption, the bounded-gap methods give much smaller bounds. The source reports:
Assuming the Elliott–Halberstam conjecture, a gap bound of 12.
Assuming a stronger version, a gap bound of 6.
These conditional results are distinct from unconditional results: their conclusions follow only if the relevant distribution conjecture is true.
What bounded-gap results do—and do not—show
A bounded-gap theorem proves that there are infinitely many prime pairs within some fixed distance. It does not prove that infinitely many pairs differ by exactly 2.
The results form a hierarchy of increasingly strong statements:
There are infinitely many pairs a fixed bounded distance apart.
There are infinitely many pairs with a smaller fixed distance.
There are infinitely many twin prime pairs, with distance exactly 2.
The twin prime conjecture is the final statement in this progression and remains open. Heuristics strongly predict that there are infinitely many twin primes, while sieve methods and bounded-gap theorems establish substantial but weaker conclusions.

Ask anything
We've read this whole study set, so questions about it get the best answers.