1. Home
  2. Explore
  3. Mathematics
  4. A Breakthrough in Number Theory

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

A Breakthrough in Number Theory

Prime Gaps and the Twin Prime Conjecture

The twin prime conjecture

A prime number is an integer greater than 111 whose only positive divisors are 111 and itself. A twin prime pair consists of two primes that differ by 222, such as 111111 and 131313 or 171717 and 191919.

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 NNN is prime is approximately

1ln⁡N,\frac{1}{\ln N},lnN1​,

where ln⁡\lnln denotes the natural logarithm. Equivalently, the number of primes up to NNN is approximately N/ln⁡NN/\ln NN/lnN.

This suggests that the average gap between nearby primes near NNN is roughly ln⁡N\ln NlnN. For example, the average gap near 100100100 is approximately ln⁡100≈4.6\ln 100 \approx 4.6ln100≈4.6, while near 100010001000 it is approximately ln⁡1000≈6.9\ln 1000 \approx 6.9ln1000≈6.9. Since ln⁡N\ln NlnN 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 222. 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 NNN and N+2N+2N+2 are prime is approximately

1ln⁡N⋅1ln⁡(N+2)≈1(ln⁡N)2.\frac{1}{\ln N}\cdot\frac{1}{\ln(N+2)} \approx \frac{1}{(\ln N)^2}.lnN1​⋅ln(N+2)1​≈(lnN)21​.

The approximation replaces ln⁡(N+2)\ln(N+2)ln(N+2) with ln⁡N\ln NlnN, which is reasonable for large NNN. 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 NNN is approximately

2C2∫2Ndt(ln⁡t)2,2C_2\int_2^N \frac{dt}{(\ln t)^2},2C2​∫2N​(lnt)2dt​,

which grows asymptotically like

2C2N(ln⁡N)2.2C_2\frac{N}{(\ln N)^2}.2C2​(lnN)2N​.

Here, C2C_2C2​ is the twin-prime constant,

C2=∏p>2(1−1(p−1)2)≈0.66016,C_2=\prod_{p>2}\left(1-\frac{1}{(p-1)^2}\right) \approx 0.66016,C2​=∏p>2​(1−(p−1)21​)≈0.66016,

where the product is taken over primes ppp greater than 222.

The correction factor reflects the fact that a pair of numbers must avoid certain divisibility obstructions. For instance, apart from the exceptional pair involving 222, two numbers that differ by 222 cannot both be prime if they are both divisible by 222.

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:

  1. Begin with the integers in a chosen range.

  2. Remove 111, which is not prime.

  3. Keep the first remaining prime and remove its multiples.

  4. Repeat with the next remaining prime.

To find primes up to NNN, it is enough to sieve using primes no larger than N\sqrt NN​. Any composite number at most NNN has a prime factor no larger than N\sqrt NN​. For example, a multiple of 111111 below 100100100 has already been removed by a smaller prime unless it is 112=12111^2=121112=121, which lies outside that range.

The sieve can also be pictured as primes marking their multiples: the prime 222 marks every second integer, the prime 333 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 222, 333, 555, and 777, for example, a number divisible by both 222 and 333 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 ppp leaves a fraction 1−1/p1-1/p1−1/p of the candidates. This leads to the familiar approximate sieve expression

N∏p≤P(1−1p),N\prod_{p\leq P}\left(1-\frac{1}{p}\right),N∏p≤P​(1−p1​),

where PPP 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 nnn and n+2n+2n+2 that are both prime, a sieve must eliminate a starting value nnn whenever either member of the pair is divisible by a sieving prime ppp.

For an ordinary prime search, divisibility by ppp excludes about one residue class out of ppp. For a twin-prime search, both nnn and n+2n+2n+2 must avoid divisibility by ppp, so typically two residue classes must be excluded. This helps explain why the predicted count has a factor resembling

(1−2p)\left(1-\frac{2}{p}\right)(1−p2​)

for primes p>2p>2p>2, with the special obstruction from p=2p=2p=2 handled separately.

This modified sieve produces a main term with the same general scale as the Hardy–Littlewood prediction: roughly N/(ln⁡N)2N/(\ln N)^2N/(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 NNN. Such counts involve rounding down. Each individual rounding error may be at most 111, but inclusion–exclusion produces many terms.

With KKK sieving primes, there can be about 2K2^K2K 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/(ln⁡N)2N/(\ln N)^2N/(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 222 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 ppp for which p+2p+2p+2 has at most two prime factors.

This means that infinitely often, either p+2p+2p+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 ppp have p+2p+2p+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+2p+2p+2 is always prime in these pairs.


A different goal: bounded gaps between primes

From a gap of 222 to any fixed bound

Instead of insisting that two primes differ by exactly 222, mathematicians can ask whether there is some fixed number BBB such that infinitely many consecutive primes differ by at most BBB.

A bounded prime gap result proves that such a constant exists:

infinitely many prime gaps have size at most B.\text{infinitely many prime gaps have size at most } B.infinitely many prime gaps have size at most B.

The constant BBB need not be 222. 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 ln⁡N\ln NlnN, 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

{0,2,6}.\{0,2,6\}.{0,2,6}.

For each starting value nnn, the corresponding translated set is

{n, n+2, n+6}.\{n,\ n+2,\ n+6\}.{n, n+2, n+6}.

The diameter of a set of offsets is the difference between its largest and smallest elements. In this example the diameter is 666. If two of the translated values are prime for infinitely many choices of nnn, then infinitely many pairs of primes lie within a gap of at most 666.

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 111, then at least one starting value must catch two or more primes. More generally, an average greater than 111 forces at least one position to have a count above 111, because every position could not have a count of at most 111 while the overall average exceeded 111.

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 222.

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

3, 7, 11, 15,…3,\ 7,\ 11,\ 15,\ldots3, 7, 11, 15,…

with step size 444. 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 θ\thetaθ.

A level θ\thetaθ roughly means that the available average estimates can be used for progression moduli up to about XθX^\thetaXθ when studying primes in a range of size XXX.

A widely available theorem gives level

θ=12.\theta=\frac{1}{2}.θ=21​.

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θ2\theta2θ. At θ=1/2\theta=1/2θ=1/2, this reaches the threshold of 111 but does not cross it. Without an average above 111, 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/21/21/2, by a small amount described in the source as 1/5841/5841/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 707070 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: 707070 million.

  • Subsequent Polymath improvements: 4,6804{,}6804,680.

  • Maynard’s initial bound: 600600600.

  • The bound reported in the source: 246246246.

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/21/21/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

θ2ln⁡K,\frac{\theta}{2\ln K},2lnKθ​,

where KKK 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 θ\thetaθ 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 222.


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 121212.

  • Assuming a stronger version, a gap bound of 666.

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 222.

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 222.

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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent