Prove that 78,557 is the smallest Sierpiński number and a sixty-year-old question is closed.
Only five candidates stand in the way. Each needs one prime of the form k·2n+1.
21181
22699
24737
55459
67607
k · 2n + 1 → one prime each, and the problem is solved
The next numbers to test have 14.4 million digits. colbert is a new, exact way to
test them on ordinary graphics cards, and the app that runs it takes a few minutes to set up.
For Mac, Windows and Linux. Free, and the source is on GitHub.
Candidates
194,260
Running now
–
Settled
–
Live from the project ledger
The problem
A question from 1962
Pick an odd number k and walk down the list k·2+1, k·4+1, k·8+1, …
For almost every k a prime turns up quickly. In 1960 Wacław Sierpiński proved that for some
k it never does: every number in the list is composite, forever. Those k are
Sierpiński numbers, and in 1962 John Selfridge found one: 78,557.
Why 78,557 never gives a prime
Every term 78557·2n+1 is divisible by one of seven small primes.
The pattern repeats every 36 steps, so it covers every n. Each cell shows n and a prime that divides that term.
Hover or tap a cell to see the number it stands for.
Is 78,557 the smallest? To prove it, every odd k below it needs a prime somewhere in its list.
Most fell quickly. By 2002, seventeen were left, and the volunteer project Seventeen or Bust
set out to find them. PrimeGrid later took up the search. Twelve have fallen. A prime of more than a
million digits that settles one is a Colbert number, a whimsical nod to Stephen Colbert, and this project's namesake.
The seventeen
Where the search stood in 2002, and the prime that eliminated each k since.
4847n = 3,321,0632005 · 999,744 digits
5359n = 5,054,5022003 · 1,521,561 digits
10223n = 31,172,1652016 · 9,383,761 digits
19249n = 13,018,5862007 · 3,918,990 digits
21181no prime yetsearching
22699no prime yetsearching
24737no prime yetsearching
27653n = 9,167,4332005 · 2,759,677 digits
28433n = 7,830,4572004 · 2,357,207 digits
33661n = 7,031,2322007 · 2,116,617 digits
44131n = 995,9722002 · 299,823 digits
46157n = 698,2072002 · 210,186 digits
54767n = 1,337,2872002 · 402,569 digits
55459no prime yetsearching
65567n = 1,013,8032002 · 305,190 digits
67607no prime yetsearching
69109n = 1,157,4462002 · 348,431 digits
The last to fall was 10223·231,172,165+1, found by PrimeGrid in 2016.
Nothing has fallen in the ten years since.
Why it's hard
Fourteen million digits, one squaring at a time
Digits in the next candidates
14.4M
about 3,000 printed pages each
Squarings per test
47.9M
each one depending on the last
One test on a laptop GPU
~40 h
Apple M4 Pro, measured
For numbers of this shape there is a one-calculation test, due to François Proth in 1878: with
and a suitable small a,
In practice: square a 14-million-digit number, reduce it modulo P, and repeat almost 48 million times.
Each squaring needs the one before, so a test can't be split across computers.
The only way to finish sooner is to make each squaring faster.
Primes this large are rare. Across the five, there's about a one-in-five chance of a prime before
n reaches 57.5 million, and on average one turns up every half a million tests.
Nobody knows which test it will be. It could be the one on your computer.
The idea
An exact transform with no padding
1Multiplying with transforms
Huge numbers are multiplied with a fast Fourier transform (FFT): digits become "frequencies", the
product becomes a pointwise multiplication, and the transform runs in a circle, so anything that overflows
the top wraps round to the bottom. For Mersenne numbers 2p−1 that
wrap-around is exactly "modulo P" (Crandall and Fagin, 1994). That's why Mersenne testing is so fast.
2The trouble with k
For k·2n+1, overflow should wrap round divided by k. Programs
either double the transform so nothing wraps (exact, but twice the data: proth20, the existing GPU
tester for these numbers), or fold k into floating-point weights (Percival, 2002; Woltman's gwnum,
behind PrimeGrid's CPU tests). Those weights need double precision, which gaming GPUs run 32–64× slower
than their whole-number arithmetic.
3colbert's step
Do Percival's weighted transform exactly, in clock arithmetic: pairs of numbers modulo the
Mersenne prime , multiplied like complex numbers (the field
). The weights need a root θ of a number that depends on k and n:
In most number systems that root doesn't exist for most k, which is why exact GPU testers were limited
to special forms. In this one it always exists.
Why the root always exists
Every nonzero number modulo q is a sum of two squares, , which in
is a pair h times its mirror image .
Raising a pair to the power q mirrors it, so . And because
q is a Mersenne prime, is a power of two, so it splits
into N equal steps for any power-of-two transform length N:
θ is a pair of whole numbers, computed in a fraction of a second before each test, whatever k and n are.
With the weights , multiplying modulo
P becomes one cyclic convolution of length N: no padding, and no rounding anywhere.
Exact by proof
Two fields, 261−1 and 231−1, combine to
92 bits of exact arithmetic. Before every run a bound (Cauchy–Schwarz over the actual word sizes) proves no
value can overflow. There's no round-off to monitor.
Checked as it runs
A Gerbicz–Li check verifies the chain of squarings as it goes. A flipped bit from heat or a cosmic ray is
caught, and the test rewinds to the last verified point. The test suite flips bits on purpose to prove it works.
Built for GPUs
In this field an eighth root of unity is , so multiplying
by it is an addition and a bit rotation. colbert's four-step transform does a squaring in three passes over each
field's data. It's written in OpenCL, which NVIDIA, AMD, Intel and Apple graphics all support.
Speed
Less data per squaring, so faster tests
Data per squaring
Transform data for one squaring at the leading edge (n ≈ 47.9 million). On a GPU a squaring's time
is mostly memory traffic, so this decides the speed.
proth20exact, zero-padded64.0 MiB
FP64 weightedgwnum, llrCUDA33.8 MiB
colbertexact, no padding24.0 MiB
Show as a table
Method
Data per squaring
proth20 (exact, zero-padded, two 31-bit primes)
64.0 MiB
FP64 weighted transform (gwnum, llrCUDA)
~33.8 MiB
colbert (exact, no padding)
24.0 MiB
Measured
Apple M4 Pro laptop GPU
3.03 ms per squaring
One leading-edge test in about 40 hours, down from 72 with colbert's first GPU kernels.
The same laptop's 14 CPU cores take about 11.5 days.
Modelled
A desktop NVIDIA card
For an RTX 4090 the performance model gives tuned colbert 7–9 tests a day, against about 3.6 for
proth20, and two to three times the tests per kilowatt-hour of today's CPU testing.
The model and its caveats.
Nobody has run colbert on NVIDIA or AMD hardware yet. If you have one, your first test produces the
first real numbers.
And less work to do
13,713 candidates removed by a deeper sieve, with every prime up to 232.
Each one's factor is published, so anyone can check it.
1 in 4 remaining candidates has a factor that P−1 factoring finds for 3.7% of the cost
of a test. The app tries it first, cutting the project's work by about 22%.
Join
Lend your computer to the search
Download and open. The engine is included; there's nothing else to install.
Give a name. It shows on the progress board. That, your computer's name and model, and your results are all the project sees.
Let it run. It checks your graphics card and CPU against exact arithmetic, then tests numbers. Pause any time; progress is saved.
Results are checked. Each device self-tests against GMP before it gets work. Results from new
computers, and a random share of the rest, are re-tested on other computers, and a prime is confirmed
independently before anyone announces it.
Any computer helps. A graphics card makes it fast. Without one, colbert uses the CPU; that's slower,
but every finished test settles a number for good.
Progress
The search, live
Candidates n = 47,900,038 to 57,499,858, five values of k, sieved to 232.
Candidates
194,260
Settled
–
Running now
–
Results, last 24 h
–
Factors found by P−1
–
All tested below n
–
Most results
No results yet. The first test is running now.
Primes reported
None yet.
A reported prime is double-checked on another computer before it counts.