Number

The patterns primes are allowed to make

Primes two apart are twin primes; primes six apart are about twice as common; three primes two apart happen exactly once, at 3, 5, 7. Which patterns of primes can recur for ever is decided by remainders alone — a pattern must leave some remainder free modulo every prime — and how often each one recurs is predicted, to within a few per cent, by a constant computed from nothing else.

Worth reading first: Two halves a sieve cannot tell apart · Every class, and in equal shares.

Which infinitudes are proved listed families of primes that are conjectured to be infinite and are not known to be, twin primes first among them, and noted that each comes with a conjectured count that agrees with the measurements “to a percent or two”. It described the model those counts come from — treat each number as prime with probability 1/log⁡n1/\log n, then correct for the obvious dependencies — and left the corrections themselves undrawn.

This essay draws them. The corrections turn out to be the whole of the interesting content: they decide which patterns of primes can occur infinitely often at all, and they predict, with a single constant for each pattern, how often each one does. The constants come from nothing but remainders, and they match the counts with no adjustable parameter.

Prime pairs a fixed distance apart, counted, against Hardy and Littlewood's prediction. Bars for the number of prime pairs (p, p + d) up to 2000000 for even d from 2 to 60, jagged with peaks at multiples of 6 and 30, each with the Hardy–Littlewood prediction marked.
Fig. 1 For each even gap d up to 60, how many primes p up to two million have p + d prime too (bars), against Hardy and Littlewood’s prediction for that gap alone (dots). The bars are far from level: gaps that are multiples of 6 come about twice as often as their neighbours, and multiples of 30 more often still. Every prediction lands within a few per cent of its bar.

Pairs at every distance

Count the pairs of primes that are exactly dd apart, for every even dd. The naive model — each number independently prime with probability 1/log⁡n1/\log n — gives every gap the same answer, about x/(log⁡x)2x/(\log x)^2 pairs up to xx. The counts in the opening figure are nothing like level. Pairs six apart are almost exactly twice as common as pairs two apart: 29,419 against 14,871 up to two million. Pairs thirty apart are more common still.

The reason is divisibility by small primes. Take gap 2. Of the numbers nn and n+2n + 2, if nn is not divisible by 3, then either n+2n + 2 is, or neither is: nn can have remainder 1 or 2 mod 3, and if it has remainder 1 then n+2n + 2 has remainder 0 and is a multiple of 3. So for a prime n>3n > 3, only one of its two possible remainders mod 3 leaves n+2n + 2 free to be prime. Now take gap 6: n+6n + 6 has the same remainder mod 3 as nn, so whenever nn is not a multiple of 3, neither is n+6n + 6. Both remainders work. That factor of two between the bars is the arithmetic of the prime 3, visible in a count of millions of primes.

The same argument applies prime by prime. A gap divisible by 5 gets a boost from 5, one divisible by 7 from 7, and the boosts multiply. That is why the tallest bars in the figure sit at 30 and 60, which are divisible by 2, 3 and 5 at once.

The gaps between primes below 1200. One bar per consecutive pair of primes, its height the distance between them.
Fig. 2 The gaps between consecutive primes up to 1,200, one bar per pair. The gaps are mostly small and irregular, and their sizes are dominated by multiples of 2 and 6; the pairs counted above are not consecutive in general, but the same arithmetic of remainders shapes both.

The consecutive gaps show the same bias in a different way. Among primes up to a few million, the commonest gap between neighbours is 6, not 2 — because a gap of 6 is favoured by the prime 3 exactly as the pair counts show — and the gap of 30 overtakes 6 as the commonest only far beyond anything a table can reach, when the primes have thinned out enough that the boost from 5 outweighs the rarity of long gaps. These “jumping champions” are predicted by the same constants, and have been checked as far as they can be.

A pattern must leave a remainder free

Generalise from pairs to patterns: a prime constellation is a set of offsets (0,h2,…,hk)(0, h_2, \ldots, h_k), and the question is whether n,n+h2,…,n+hkn, n + h_2, \ldots, n + h_k can all be prime for infinitely many nn.

Some patterns plainly cannot. Take (0,2,4)(0, 2, 4). Among nn, n+2n + 2 and n+4n + 4 the remainders mod 3 are nn, n+2n + 2 and n+1n + 1 — all three remainders, in some order — so one of the three numbers is always a multiple of 3. The only way all three can be prime is if that multiple of 3 is 3, which happens once: 3,5,73, 5, 7. The pattern (0,2,4)(0, 2, 4) can occur at most once, and it does.

Which patterns of primes are admissible, remainder by remainder. A table of 8 patterns with the number of residues each occupies modulo 2, 3, 5 and 7, and whether it is admissible.
Fig. 3 Patterns of offsets, and how many of the remainders modulo 2, 3, 5 and 7 each one occupies. A pattern that fills every remainder modulo some prime always contains a multiple of it. (0, 2, 4) and (0, 2, 4, 6) fill all three remainders modulo 3; the others always leave one free.

A pattern is admissible when, for every prime pp, its offsets miss at least one remainder mod pp. Only primes up to the number of offsets need checking, since a pattern of kk numbers cannot fill all pp remainders when p>kp > k. An inadmissible pattern contains a multiple of some prime every time, and so holds primes at most finitely often. An admissible one faces no such obstruction — and the prime kk-tuples conjecture, due to G. H. Hardy and J. E. Littlewood in 1923, says that is the only obstruction: every admissible pattern occurs infinitely often.

It is worth dwelling on how much that conjecture claims. The twin prime conjecture is its simplest case, the pattern (0,2)(0, 2). The triplets (0,2,6)(0, 2, 6) and (0,4,6)(0, 4, 6) are both admissible, and both are conjectured infinite. Not a single admissible pattern of two or more numbers has been proved to occur infinitely often. The conjecture is supported by every count ever made and by a heuristic nobody seriously doubts, and it is proved for no pattern at all.

The constant, from remainders alone

Hardy and Littlewood did more than conjecture infinitude. They predicted the count. For an admissible pattern with kk offsets, let ν(p)\nu(p) be the number of remainders mod pp that its offsets occupy. For a random nn, the chance that none of the kk numbers is divisible by pp is 1−ν(p)/p1 - \nu(p)/p; if the kk numbers were independent, it would be (1−1/p)k(1 - 1/p)^k. The ratio

S=∏p1−ν(p)/p(1−1/p)k\mathfrak{S} = \prod_{p} \frac{1 - \nu(p)/p}{(1 - 1/p)^k}

corrects the naive model prime by prime, and the conjecture says the pattern occurs about S∫2xdt/(log⁡t)k\mathfrak{S} \int_2^x dt/(\log t)^k times up to xx.

π(x) against its two estimates, up to 20,000. The ratio of the prime counting function to x over the logarithm of x, and to the logarithmic integral, plotted against x. The first is above one and coming down slowly; the second is close to one throughout.
Fig. 4 The model’s starting point, checked: the number of primes up to x against x / log x and against the integral of 1 / log t. The integral tracks the count closely throughout, which is why the predictions use integrals of powers of 1 / log t rather than simpler formulas.
Prime constellations counted, against the Hardy–Littlewood constants. A table of 7 admissible prime patterns with their singular series, predicted counts and actual counts up to 2000000.
Fig. 5 Seven admissible patterns up to two million: each one’s constant, the count the constant predicts, and the count found by sifting. The ratios run from 0.93 to 1.03 with nothing fitted. The pair two apart and the pair four apart share a constant exactly; so do the two mirror-image triples.

The table is the essay’s central exhibit. Every constant is a product over primes, computed here up to 100,000, and every count is a direct sieve of the numbers up to two million. The predictions track the counts to within a few per cent for patterns whose frequencies differ by a factor of fifty. The twin prime constant, 2C2≈1.32032C_2 \approx 1.3203, gives 14,798 predicted pairs against 14,871 found. The triplet constant, about 2.8582.858, predicts 2,445 triplets of each shape, against 2,380 and 2,508. The quadruplet (0,2,6,8)(0, 2, 6, 8) — the tightest four primes can crowd, as in 11,13,17,1911, 13, 17, 19 — has constant about 4.1514.151 and predicted count 286, against 295.

Two patterns related by reflection, like (0,2,6)(0, 2, 6) and (0,4,6)(0, 4, 6), occupy the same number of remainders mod every prime, so they share a constant exactly. Their counts differ by about five per cent up to two million, one above and one below the prediction — the kind of fluctuation that the essay on primes in residue classes found between classes that are equally shared in the limit.

The ingredients of the prediction are worth separating, because only one of them is conjectural. The integral ∫2xdt/(log⁡t)k\int_2^x dt/(\log t)^k is the naive count — what kk independent events of probability 1/log⁡t1/\log t would give — and its k=1k = 1 case is the prime number theorem’s count, which is proved. The constant S\mathfrak{S} is an exact computation: for each prime pp it compares the true chance that the pattern avoids multiples of pp with the chance independence would give, and the comparison is pure arithmetic of remainders, the same arithmetic the sieve of Eratosthenes performs one prime at a time. What is conjectured is only that multiplying the two is correct — that after every prime’s effect on divisibility has been accounted for, nothing else correlates the numbers in the pattern.

For the patterns with one number, that conjecture is a theorem: it is the prime number theorem itself, and for one number in a residue class it is Dirichlet’s. The moment a pattern has two numbers, it becomes one of the most famous open problems in mathematics.

Why the model works, and what it cannot prove

The constant is a statement about independence. It says that, once the divisibility by each small prime is accounted for exactly, what is left behaves as though the numbers were independent random events. That is a strong claim about the primes and it is not proved for any pattern. Its success is evidence of a very specific kind: not that the primes are random, but that their correlations are entirely explained by remainders.

The model also knows its limits. It predicts the count up to a ratio tending to one, and the fluctuations around that ratio — the five per cent separating the two triplet shapes at two million — are not predicted, and are expected to shrink only slowly. And it says nothing about why the conjecture should be true; it takes the pattern’s admissibility as the only obstruction and assumes that no other conspiracy among the primes exists.

That assumption has one surprising consequence. Hardy and Littlewood also conjectured that π(x+y)≤π(x)+π(y)\pi(x + y) \le \pi(x) + \pi(y) — that no interval of length yy holds more primes than the first yy numbers do. Douglas Hensley and Ian Richards showed in 1973 that the two conjectures cannot both be true: there are admissible patterns denser than the primes near the start of the number line, and if every admissible pattern occurs, some interval far out holds more primes than the first interval of its length. Most number theorists believe the kk-tuples conjecture and have abandoned the other — but the interval where it would fail is so far out that no computation has come close.

The same test for polynomials

Fixed offsets are one kind of pattern. Another asks whether a polynomial takes prime values infinitely often: is n2+1n^2 + 1 prime for infinitely many nn? The essay on primes of one kind took up the linear case — primes of the form an+ban + b — and the quadratic case is open, one of the four problems Edmund Landau listed in 1912 as unattackable.

The admissibility test carries over exactly. A polynomial can take prime values infinitely often only if no single prime divides all its values: n2+n+2n^2 + n + 2 is always even, so it cannot, while n2+1n^2 + 1 is never divisible by 3 (its values mod 3 are 1 and 2) and passes the test for every prime. Andrzej Schinzel’s Hypothesis H is the conjecture that this necessary condition is also sufficient, for any finite collection of irreducible polynomials at once — and the kk-tuples conjecture is the special case where every polynomial is n+hin + h_i.

The count has a constant too. Paul Bateman and Roger Horn gave the analogue of Hardy and Littlewood’s product in 1962, with ν(p)\nu(p) replaced by the number of roots the polynomials have mod pp, and it predicts the values of n2+1n^2 + 1 as well as the twin prime constant predicts twins. Which infinitudes are proved quoted it: 38 predicted primes of the form n2+1n^2 + 1 below a hundred thousand, against 51 found — a worse match than the table above, because the relevant range of nn is only up to 316, far too small for the asymptotics to have settled. The constant is right; the scale is not large enough yet to show it.

Patterns that were proved: progressions

There is one kind of prime pattern for which infinitely many examples are known, and the reason it escapes the difficulty is instructive. An arithmetic progression of primes, like 5,11,17,23,295, 11, 17, 23, 29, has a common difference — but the difference is not fixed in advance. The question is whether, for each length kk, some progression of kk primes exists, with whatever difference it needs.

Ben Green and Terence Tao proved in 2004 that it does, for every kk. Their proof shows the primes are dense enough, in a suitable sense, inside a larger set that behaves randomly, and that any dense subset of such a set contains long progressions — a statement about the primes’ size, not about their fine arrangement. That is why it succeeds where the kk-tuples conjecture does not: allowing the difference to grow lets the pattern be found in the bulk of the primes, where density arguments reach, rather than at a fixed small scale, where the parity problem and its relatives stand in the way. The longest progression of primes actually found has more than two dozen terms; the theorem promises arbitrarily long ones and gives no practical way to find them.

Narrow patterns and bounded gaps

The patterns matter even without the full conjecture, because of what has been proved.

The narrowest admissible pattern of k numbers, for k up to ten. The widths of the narrowest admissible k-tuples for k from 2 to 10: 2: 2, 3: 6, 4: 8, 5: 12, 6: 16, 7: 20, 8: 26, 9: 30, 10: 32.
Fig. 6 For each number of offsets k from 2 to 10, the narrowest admissible pattern, found by trying every pattern of each width in turn: widths 2, 6, 8, 12, 16, 20, 26, 30, 32. The narrowest admissible pattern of fifty numbers has width 246.

In 2013 Yitang Zhang proved that some admissible pattern of numbers contains at least two primes infinitely often, and deduced that infinitely many pairs of consecutive primes lie within 70 million of each other — the first proof that gaps between primes do not grow without bound. James Maynard and Terence Tao then found a simpler and stronger method: for every mm, any admissible pattern of enough numbers contains at least mm primes infinitely often. For m=2m = 2, fifty numbers are enough.

So take the narrowest admissible pattern of fifty numbers. Infinitely often, at least two of its fifty numbers are prime, and so two primes lie within its width of each other. The figure computes the narrowest widths up to ten numbers by exhaustive search, reproducing the known values; for fifty, the answer is 246, found by the Polymath collaboration’s searches — and that is the current bound: infinitely many pairs of primes differ by at most 246.

What stands between 246 and 2 is the parity problem. Maynard’s method proves “at least two of fifty are prime”, which holds in both parity classes and so is within a sieve’s reach. Proving that both members of a specific pair are prime is the parity-sensitive statement, and no sieve can make it.

What the counts cannot show

The figures count up to two million, and every agreement between prediction and count is an agreement at that scale. For the twin primes the agreement holds as far as computation has reached, in the trillions, but no finite count can support the claim that the pattern continues for ever, and the conjecture is exactly that claim. The constants themselves are computed from primes up to 100,000; the omitted tail changes them in the fifth decimal place, which is below anything the counts could detect.

The narrowest-pattern figure is an exhaustive search for small widths and says nothing about the value 246, which comes from a much larger search the figure does not reproduce. And no figure shows the actual theorem — Maynard’s — which is a statement about weighted sums over all nn up to xx, and has no picture. What the table can do is make the claim concrete: seven patterns, seven constants, seven predictions, and seven counts that fall within a few per cent. A conjecture that fits that well with no free parameter is not proved by fitting, but it is hard to believe it is merely lucky.

Still open: every admissible pattern

The Hardy–Littlewood conjecture is open in every case. No admissible pattern with two or more numbers is known to occur infinitely often; the twin primes are the simplest instance and the best studied. The bounded-gaps theorems prove that some pattern among many does, without saying which.

Between the current bound of 246 and the conjectured truth, the obstacle is well understood: the methods prove statements that are insensitive to the parity of prime factors, and “these two specific numbers are both prime” is not such a statement. Assuming the strongest conjecture about how evenly primes spread over residue classes — the Elliott–Halberstam conjecture — Maynard’s method brings the bound down to 12, and a generalised form brings it to 6. Getting from 6 to 2 is exactly the parity barrier, and nothing currently known is expected to cross it. Even the most modest statement of the conjecture — that the pair (0,2)(0, 2) occurs infinitely often, the twin primes — is out of reach, while the most ancient infinitude of all, Euclid’s, is a proof of a few lines. The distance between those two statements, one about primes and one about primes two apart, is the measure of what is not yet understood about how the primes are arranged.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Bounded gapsHardy littlewood conjecturePrime constellationPrimesResidue classSieveTwin primes