Numbers that survive a sieve of positions
Worth reading first: The sieve that cannot finish · Two halves a sieve cannot tell apart.
The sieve of Eratosthenes finds the primes by striking out multiples: everything divisible by 2 except 2, then everything divisible by 3 except 3, and so on, each time using the smallest number not yet struck. In 1956 Verna Gardiner, Roger Lazarus, Nicholas Metropolis and Stanisław Ulam asked what happens if the striking goes by position instead of by divisibility. Write out the odd numbers. The second number in the list is 3, so strike every third number still in the list. The next survivor is 7, so strike every seventh number still in the list. Then every ninth, every thirteenth, and so on, each time using the next survivor as the step. The numbers that are never struck are the lucky numbers: 1, 3, 7, 9, 13, 15, 21, 25, 31, 33, 37, 43, …
They were invented as a control experiment. The primes have a long list of statistical properties — how many there are, how they pair up, how they add — and the natural question is which of those properties are really about multiplication and which would hold for any reasonable sieve. The lucky numbers are produced by a process with the same shape as Eratosthenes’ and none of the arithmetic, so wherever they behave like primes, the property in question cannot depend on primes being primes. This essay computes the lucky numbers below 200,000 and sets them beside the primes one property at a time. They agree remarkably often, and where they disagree, the disagreement points at exactly what divisibility adds.
Striking by position
The figure runs the sieve on the forty odd numbers below 80, one round to a row, with the numbers about to be struck shaded red. The first round strikes the third, sixth, ninth, … entries of the list of odd numbers, which are 5, 11, 17, 23 and so on. The second round counts again from the start of what is left — 1, 3, 7, 9, 13, 15, 19, 21, … — and strikes every seventh entry, which is 19, then 39, then 61. The third round strikes every ninth entry of what is now left, and so on. After five rounds nothing below 80 changes any more, and twenty numbers survive.
The contrast with Eratosthenes’ sieve is the point. There, whether a number is struck depends on the number itself — on whether some smaller prime divides it — and the outcome is the same whatever order the striking is done in. Here, whether a number is struck depends on where it happens to stand in a list that earlier rounds have already shuffled, and the outcome has no description in terms of the number’s own properties at all. Nineteen is struck in the second round only because exactly six numbers below it survived the first, and nothing about 19 itself, or about its factors, enters into it.
Striking by position has an older relative. In the Josephus problem, people stand in a circle and every third one is removed, counting on through the survivors, and the question is who is left at the end; the answer depends on positions in a list that earlier removals keep reshuffling, exactly as here, and it has a clean answer only for steps of 2. The lucky sieve is a Josephus process run on an infinite line with a step that grows each round, and it inherits the same opacity: there is no formula for the -th lucky number, and no quick test of whether a given number is lucky short of running the sieve up to it. For the primes, a quick test exists, because primality is a property of the number; for the lucky numbers, being lucky is a property of the whole list below it.
What the two sieves share is their shape. Each round uses the smallest survivor not yet used, and each round removes about one in every of the numbers still standing, where is that survivor. That single similarity turns out to carry most of the statistics.
The same density as the primes
The prime number theorem says that the number of primes below is about . The figure plots the count of lucky numbers and the count of primes below , each divided by , for up to 200,000. Both curves sit a little above 1 and drift slowly towards it; at 200,000 the lucky numbers stand at 1.004 and the primes at 1.098. There are 16,448 lucky numbers and 17,984 primes in that range, a difference of under ten per cent.
That the lucky numbers have the primes’ density is not just an observation. David Hawkins and William Briggs proved in 1957 that the number of lucky numbers below is asymptotic to . The heuristic is the shared shape of the sieves. In both, a number survives the round led by with chance about , and the survivors that lead the rounds are themselves spread with density about of their size; multiplying the survival chances over all rounds below gives , and with the leaders that sparse the product comes out near . For the primes this is Mertens’ product, the calculation that also sets the ceiling a sieve cannot raise; for the lucky numbers the same product runs over different leaders, and a self-consistency argument shows the density must be the same.
So the logarithmic thinning of the primes is a property of sieves, not of multiplication. Any process that removes one in of the survivors for each survivor in turn will leave about numbers below , and the classical theorem that there is no last prime, together with its quantitative form, could not by itself tell primes from lucky numbers.
Twins, and how often they occur
Twin primes, two apart like 41 and 43, are believed to go on for ever, and the Hardy–Littlewood conjecture predicts their number below as about . Lucky numbers have twins too — 1 and 3, 7 and 9, 13 and 15 — and the figure counts both kinds up to 200,000: 2,008 lucky twins and 2,160 prime twins, the two curves running side by side above the dashed prediction for the primes.
The agreement is closer than it has any right to be. The constant 1.32 in the twin-prime prediction comes from a correction for divisibility by small primes — twin primes cannot both be divisible by 3, which is a fact about multiplication — and the lucky numbers have no such fact. Yet their twin count tracks the primes’ to within eight per cent across the whole range. Part of the reason is a structural accident that the last figure of this essay will expose: lucky numbers are never 2 more than a multiple of 3, which makes many pairs two apart impossible in a way that happens to mimic what divisibility does to prime twins.
For neither kind of twin is it known that there are infinitely many. The twin-prime question is one of the infinitudes nobody has proved, and the lucky version is open too — a reminder that a sieve’s density can be proved without its fine structure being understood.
Goldbach without the primes
Goldbach’s conjecture says every even number from 4 on is a sum of two primes, and the number of ways of writing it so, plotted against the even number, forms the comet Goldbach left behind: a rising cloud split into bands by the small prime factors of the even number. The lucky analogue — every even number is a sum of two lucky numbers — was proposed by the numbers’ inventors, and the computation here confirms it for every even number from 4 to 200,000.
The figure draws the number of representations for every other even number up to 20,000, and the lucky numbers have a comet too. It rises steadily, like the primes’, and it is split into bands. But the bands are different. For the primes, the bands come from the even number’s divisibility by 3, 5, 7 and so on, because a number divisible by 3 can be written as a sum of two primes in more ways — both summands may then avoid 3 freely. For the lucky numbers there are exactly two bands, and the upper one holds the even numbers that leave remainder 4 on division by 6, with an average of 180 representations against 90 for the rest.
That band structure has a simple cause, visible only once the remainders of lucky numbers are counted: every lucky number is 0 or 1 more than a multiple of 3, never 2. A sum of two of them is therefore 0, 1 or 2 more than a multiple of 3 according as it uses two of the first kind, one of each, or two of the second; and an even number that is 1 more than a multiple of 3 — remainder 4 on division by 6 — can be written using one of each kind in either order, doubling its count. The comet’s shape is a fingerprint of the sieve’s first round.
A sieve that strikes at random
If the lucky numbers’ density comes from the shape of the sieve and not from its details, then a sieve with no details at all should do the same. David Hawkins proposed one in 1958. Start with the numbers from 2 up. The smallest, 2, strikes each later number independently with probability . The smallest survivor after 2, whatever it turns out to be, strikes each later survivor with probability one over itself. And so on. Every run produces a different random set of “primes”.
The figure runs the random sieve five times on the numbers to 40,000, with five seeds, and plots each run’s count divided by . All five end between 1.00 and 1.07. Hawkins proved that this is no accident: with probability one, the random sieve’s survivors number about below , and later work showed that many other prime-like statements hold for them with probability one as well, including an analogue of the error bound the Riemann hypothesis would give for the primes. So the prime number theorem holds for almost every random sieve — it is the generic behaviour of the procedure, and the primes, like the lucky numbers, are particular sieves that happen to be generic in this respect.
This is the same lesson that the random models of the primes teach from the other side. A random model reproduces the primes’ density and gets their small-scale patterns wrong unless it is told about divisibility; a sieve without divisibility reproduces the density and gets the patterns wrong in its own way.
Where divisibility shows
The analogy breaks where it must: on remainders. The figure sorts the primes and the lucky numbers from 7 to 200,000 by their remainder modulo 3, 4, 5 and 7, with each bar’s full length standing for one half. The primes do what Dirichlet’s theorem says: they avoid the remainder 0, since a prime larger than ’s prime factors is not divisible by them, and they spread exactly evenly over the other classes. Modulo 7, the six non-zero classes each hold 16.6 or 16.7 per cent.
The lucky numbers look nothing like this. Modulo 3, half of them are multiples of 3 — 9, 15, 21, 33, … — and the other half are 1 more than a multiple, and none at all is 2 more than a multiple of 3. The reason is the first round of the sieve: striking every third odd number removes 5, 11, 17, 23, …, which are exactly the odd numbers 2 more than a multiple of 3, and no later round can bring any of them back. Modulo 4, the lucky numbers are odd and split evenly, like the primes. Modulo 7, their shares are uneven — 18.6 per cent in the class 3, only 9.2 per cent in the class 4 — and nothing about 7 explains it; the unevenness is an echo of the seventh-number round, striking positions that happen to fall more often in some classes than in others.
So divisibility shows up exactly in the distribution over residue classes, which is the one place where the primes are constrained by what they are rather than by how they were sifted. Everything the sieve’s shape controls — density, roughly the twin count, the solubility of Goldbach — is shared; everything that depends on how a number relates to smaller ones under multiplication is not.
What the comparison cannot settle
The figures compare two sets up to 200,000, and every agreement in them is evidence about that range. The lucky density theorem is proved; the lucky Goldbach statement and the infinitude of lucky twins are not, any more than their prime versions. A computation of this size can exhibit a counterexample but can never rule one out.
The comparison also cannot decide how much of a prime statement is a sieve statement. It shows that the density is shared and that the residue distribution is not. For the twin counts and the Goldbach comet the answer is partial and tangled: the counts are close, but for reasons that are partly structural accidents of the first round, and a different positional sieve — striking every fifth number first, say — would give different twin and Goldbach statistics with the same density. The lucky numbers are one control experiment, not a family of them.
And the name invites a confusion the figures cannot correct. Euler’s lucky numbers are something else entirely: the primes for which is prime for every from 1 to , such as 41, whose polynomial lights up a diagonal of Ulam’s spiral. Euler’s 41 is not one of Ulam’s lucky numbers, and the two uses of the word have nothing in common but a feeling of good fortune.
Still open: a sieve that knows the parity
The deepest thing the lucky numbers illustrate is a limitation of sieves, and it is the one recorded in the two halves a sieve cannot tell apart: a sieve sees only how many numbers each step removes, and so cannot distinguish numbers with an even number of prime factors from numbers with an odd number. That parity barrier is why sieve methods alone prove neither the twin prime conjecture nor Goldbach’s; Chen’s theorem, that every large even number is a prime plus a number with at most two prime factors, is as close as sieves get.
The lucky numbers make the barrier concrete. They share everything a sieve can see and differ in everything it cannot, and any argument that would prove the twin-prime conjecture by sieving alone would prove the lucky twin conjecture too. Whether the lucky twin conjecture is true is open; whether some argument can distinguish the two sets using only sieve-like information — and thereby break the parity barrier — is one way of stating the central open problem of the subject.
A control experiment for the primes
Ulam’s lucky numbers, the survivors of a sieve that strikes by position rather than by divisibility, thin out exactly like the primes: about below , a theorem of Hawkins and Briggs, with 16,448 lucky numbers against 17,984 primes below 200,000. They have about as many twins, 2,008 against 2,160; every even number from 4 to 200,000 is a sum of two of them; and a sieve that strikes at random gives the same density with probability one. The difference is in the remainders: half the lucky numbers are multiples of 3 and none is 2 more than one, because the sieve’s first round removed that class wholesale, and that one fact splits their Goldbach comet into two bands. Density is a property of sieving; the even spread over residue classes is a property of multiplication, and it is the part of the primes a sieve can never see.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The longest wait for a prime — both name prime number theorem, random model, sieve
Named objects
A dashed tag is an object no other essay names yet.
Goldbach conjecturePrime number theoremRandom modelResidue classSieveTwin primes