ExplorationsRepeated absolute differences of the primes
Gilbreath’s Difference Field
Begin with the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. in order: 2, 3, 5, 7, 11 and so on. Make a new row from the absolute differences between neighbours, subtracting the smaller from the larger: the first differences are 1, 2, 2 and 4. Repeat with each new row. Every computed difference row begins with 1, but whether this always happens remains unproved.
Current view: Difference field
The whole triangle, at whatever scale the ladder below is set to: printed as numbers while there are few enough to read, drawn as coloured squares once there are not.
| The primes | |
|---|---|
| Row 1 | |
| Row 2 | |
| Row 3 | |
| Row 4 | |
| Row 5 | |
| Row 6 | |
| Row 7 | |
| Row 8 | |
| Row 9 | |
| Row 10 | |
| Row 11 | |
| Row 12 | |
| Row 13 | |
| Row 14 | |
| Row 15 | |
| Row 16 | |
| Row 17 | |
| Row 18 | |
| Row 19 |
The original statement: 2, 3, 5, 7, 11, … Gilbreath’s conjecture is about exactly this row. Point at a entry to read it; click one to change the term it descends from. Press Run to watch the triangle built a row at a time.
- cell
- one entry of the triangle, printed as an integer
- term
- one number in the top row - the row the triangle is built from
- row
- one line of the triangle, each entry the distance between two above it
- left edge
- the first entry of every row - outlined below the top row, where the conjecture actually lives
The top row across the top, each row below it one entry shorter, the left-hand column marked - that much is true at every scale. Below twenty terms every entry is printed outright. Above it, the same triangle is drawn instead: one coloured square per entry, colour standing for the value under whichever colouring is selected. Look at how few distinct colours most of the field uses at the larger sizes, and at the single marked column running down the left at every size.
Every one of the 19 rows below the top begins with 1. Evidence about these rows only - the triangle is infinite.
- Rows
- 20
- Edge
- all 1
- Parity
- odd-shaped
Scale
Every value still printed, working left off - enough rows that the all-1s edge is a pattern you can see rather than a claim to take on faith.
Top row
The original statement: 2, 3, 5, 7, 11, … Gilbreath’s conjecture is about exactly this row.
Colouring
Parity is the mathematics: odd entries are confined to the left edge, and that is most of the insight.
Build it row by row
Use Step for one change you can inspect, or Run to watch the changes accumulate.
20 of 20 rows drawn. Reset returns to the whole field.
Perturb a term
Adds 2 to that term and shows how far the change actually travels.
Advanced parameters
Cases worth seeing
Try this
Find a seed where the random model’s edge breaks. How long does it take you?
The rows, written out
| Row | Begins with | Entries |
|---|---|---|
| 0 | 2 | 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 … |
| 1 | 1 | 1 2 2 4 2 4 2 4 6 2 6 4 2 4 6 6 2 6 … |
| 2 | 1 | 1 0 2 2 2 2 2 2 4 4 2 2 2 2 0 4 4 2 |
| 3 | 1 | 1 2 0 0 0 0 0 2 0 2 0 0 0 2 4 0 2 |
| 4 | 1 | 1 2 0 0 0 0 2 2 2 2 0 0 2 2 4 2 |
| 5 | 1 | 1 2 0 0 0 2 0 0 0 2 0 2 0 2 2 |
| 6 | 1 | 1 2 0 0 2 2 0 0 2 2 2 2 2 0 |
| 7 | 1 | 1 2 0 2 0 2 0 2 0 0 0 0 2 |
| 8 | 1 | 1 2 2 2 2 2 2 2 0 0 0 2 |
| 9 | 1 | 1 0 0 0 0 0 0 2 0 0 2 |
| 10 | 1 | 1 0 0 0 0 0 2 2 0 2 |
| 11 | 1 | 1 0 0 0 0 2 0 2 2 |
| 12 | 1 | 1 0 0 0 2 2 2 0 |
| 13 | 1 | 1 0 0 2 0 0 2 |
| 14 | 1 | 1 0 2 2 0 2 |
| 15 | 1 | 1 2 0 2 2 |
| 16 | 1 | 1 2 2 0 |
| 17 | 1 | 1 0 2 |
| 18 | 1 | 1 2 |
| 19 | 1 | 1 |
What is going on
Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.
| the primes | 23571113 |
|---|---|
| row 1 | 3−215−327−5211−7413−112 |
| row 2 | |2−1|1|2−2|0|4−2|2|2−4|2 |
| row 3 | |0−1|1|2−0|2|2−2|0 |
| row 4 | |2−1|1|0−2|2 |
| row 5 | |2−1|1 |
The instrument above draws this exact triangle, live. At its smallest scale it does exactly what this plate does - every number printed, so nothing above has told you anything yet that you could not check by hand. Raise its scale and the same triangle keeps growing the only way that stays legible: stop printing the numbers and give each one a coloured square instead - vermilion if it is odd, blue if it is even. Same rows, same subtractions, just too many of them to write out.
Read down the left-hand edgeDefinition: An edge is a connection between two nodes in a graph.: 1, 1, 1, 1, 1. Nothing in the rule asks for that. However far the triangle in the laboratory above is taken - six rows or six hundred, printed as numbers or drawn as squares - the edge is still 1 all the way down. Whether it stays 1 forever has been open since 1958.
What you are seeing
A plain description of the process
Write the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. in increasing order, beginning 2, 3, 5, 7, 11. Under each adjacent pair, write its absolute difference: subtract the smaller value from the larger, so the answer is never negative. These five primes produce the row 1, 2, 2, 4.
Apply the same operation to that new row. It gives 1, 0, 2, followed by 1, 2 and then 1. Each row has one fewer entry, so a finite starting list produces a triangle.
The laboratory prints small triangles as numbers and uses coloured cells for larger ones. Every difference row in these calculations begins with 1; the original primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. row begins with 2. Gilbreath's conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is the unproved claim that the difference rows keep beginning with 1 however far the starting list of primes is extended.
Why it starts to make sense
Intuition, before any algebra
Two things are going on, and only one of them is mysterious.
The triangle is mostly 0s and 2s. Switch the colouring to magnitude and the field turns into a sea of two values with occasional larger islands. Once a region is all 0s and 2s, differencing keeps it that way: |0−0|, |2−2| and |0−2| are 0, 0 and 2. The structure is self-sustaining, and a left edgeDefinition: An edge is a connection between two nodes in a graph. sitting on top of such a sea has very little to push it around.
The left edgeDefinition: An edge is a connection between two nodes in a graph. is stuck on odd numbers. This is the part you can prove, and it is the subject of layer 3. The first entry of every row is odd, so it is 1, 3, 5, … The conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is only that it never gets past the first of those.
So the question is not "why is the edgeDefinition: An edge is a connection between two nodes in a graph. so regular?" - half the regularity is forced. The question is why the one remaining degree of freedom is never used.
The key idea
The invariantDefinition: An invariant is a quantity or property that remains unchanged under a rule. that does the work
Look at the parityDefinition: Parity records whether an integer is even or odd. of the top row. is odd. Every later prime gapDefinition: A prime gap is the difference between consecutive prime numbers. is a difference of two odd numbers, so every later gap is even. The first row of the triangle therefore has the shape
Now difference that row. The first entry of the next row is , which is odd. Every later entry is , which is even. The shape is exactly the shape we started with.
So it repeats, forever. The first entry of every row is odd.
That is a complete proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. of half the story, and it costs three lines. Notice what it does not give you: an odd number can be 1, or 3, or 5. Nothing above rules out a 3 appearing on row ten billion.
Formal statement
Precisely what is being claimed
Let be the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. and define the rows
Proved. For every , the value is odd.
Conjectured (Gilbreath, 1958). For every ,
Two things are worth noticing about the statement. It is about the infinite triangle - every row, not the first ten billion. And it never mentions primality after the first row: what the proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. in layer 3 actually used was the parityDefinition: Parity records whether an integer is even or odd. of the gaps, not the fact that the numbers were primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.. Layer 6 takes that observation seriously.
Proof
Of the odd half only - and that is the point
The parityDefinition: Parity records whether an integer is even or odd. argument in layer 3 is a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions., and you can check it as carefully as you like. Nothing on this page proves Gilbreath's conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved., because nobody has.
The history is a caution in itself. François Proth published a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. in 1878 - eighty years before Gilbreath noticed the pattern independently - and the argument was later found to be erroneous.
What is known is computational. The conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. has been verified for the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. below . That is an enormous check, and it settles exactly nothing:
Checking cases tells you about cases.
There is a genuine reduction that makes such checks feasible: if a row begins with 1 and the entries after it are all 0s and 2s, that structure propagates to the row below, so verifying a long enough stretch of 0s and 2s certifies many rows at once. That is a real theoremDefinition: A theorem is a mathematical statement established by a proof from accepted definitions and earlier results. doing real work - and it still only ever certifies finitely much.
Compare this with the 6174 attractor, where the state spaceDefinition: A state space is the collection of all configurations a rule can occupy. is finite and so checking every case genuinely is a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions.. The difference between the two pages is not effort or cleverness. It is that one space runs out and the other does not.
Limits and frontier
Where this page stops being able to help
The primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. may not be the point. The proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. in layer 3 used parityDefinition: Parity records whether an integer is even or odd., not primality. So build a sequenceDefinition: A sequence is an ordered list of values, usually indexed by whole numbers. with the same shape - 2, 3, then odd numbers with random even gaps of roughly the right size - and it should behave the same way. Select the random model above and it does: the edgeDefinition: An edge is a connection between two nodes in a graph. holds, row after row, in a sequence with no arithmetic content at all.
But not always. Try seed 12345. The edgeDefinition: An edge is a connection between two nodes in a graph. breaks at row 9, with a 5. The same construction, a different draw, and the pattern simply fails.
That is the most informative thing on this page. In the random model, counterexamplesDefinition: A counterexample is one valid case that makes a universal claim false. take seconds to find. For the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself., nobody has found one below . Either the primes are doing something the model does not capture, or we have not looked nearly far enough - and there is currently no way to tell which.
What recent work does and does not settle. Chase, Hunter and Tao analyse a Cramér-style model of exactly this kind and prove deterministic results about it. Those are theoremsDefinition: A theorem is a mathematical statement established by a proof from accepted definitions and earlier results. about the model. The primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. case is untouched, and the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. stands.
What this page cannot do. It draws only a few hundred rows while the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. concerns all of them, so every 1 visible here is a fact without making the sentence "the edgeDefinition: An edge is a connection between two nodes in a graph. is always 1" a proved statement.
What is actually established
Every statement on this page, with its status, its exact scope, and the date that status was last checked.
If a sequence’s first difference is odd and all its later differences are even, then the first entry of every row below the top is odd.
- Scope
- Any integer sequence with that parity structure, including the primes and the random model used here.
- Why
- Differencing preserves the shape. If a row is (odd, even, even, …) then the next row begins |even − odd|, which is odd, and continues |even − even|, which is even. The primes start the induction because 3 − 2 = 1 is odd and every later prime gap is even.
- Status checked
Gilbreath’s conjecture: for the primes, the first entry of every row below the top is exactly 1.
- Scope
- All rows of the infinite triangle built from all the primes.
- Why
- The odd-edge result above says the entry is 1, 3, 5, … The conjecture is that it never leaves 1, and no proof is known. François Proth published an argument in 1878; it was later found to be erroneous.
- Status checked
Every row of the triangle drawn on this page is checked, and the outcome of that check is reported above the field.
- Scope
- Only the rows currently on screen, for the top row currently selected. Nothing beyond them.
- Why
- The check runs in your browser as you change the controls, and reports what it finds - including failure. Several top rows offered here do break the edge, so this states what is checked rather than asserting the answer: for the primes it holds on every row drawn, and for the random model with seed 12345 it does not.
- Computation (exact)
- Exact integer arithmetic on the selected top row, up to 600 terms. Values are held as 32-bit integers and custom terms are bounded to ±10⁹ so nothing can silently overflow. Complete for the rows displayed; no evidence whatsoever about later rows. Algorithm difference-field-1.
- Status checked
The conjecture has been verified computationally for the primes below 10¹³.
- Scope
- Primes below 10¹³, by Odlyzko in 1993.
- Why
- A very large finite check, and still a finite one. It says nothing about the rows beyond it, which is exactly why the problem is open rather than settled.
- Computation (exact)
- Not computed here. Reported from the literature; this page cannot reproduce it, and the citation is not yet checked against the original.
- Status checked
A random sequence with the primes’ parity and gap structure can keep a 1 edge, and can fail to: of the seeds reachable from this page, 1958 holds for every row drawn and 12345 fails at row 9.
- Scope
- The seeded generator on this page, at the term counts offered. Produced by this configuration only.
- Why
- This is the most useful thing on the page. Counterexamples in the random model are easy to come across, and none has ever been found for the primes. Whatever the primes are doing, it is not merely what a sequence of this shape does automatically. No frequency is claimed - these are particular seeds, not a sample of any well-defined population.
- Computation (exact)
- Deterministic seeded generator, exact integer arithmetic, evaluated in your browser over the seeds you try. Not a sample of any well-defined population, and not a probability estimate. Algorithm difference-field-1.
- Status checked
A Cramér-style random model suggests the edge should persist, and supports deterministic results about the model itself.
- Scope
- The random model, not the primes. A model can make a statement plausible; it cannot make it true.
- Why
- Recent work analyses exactly this kind of random model and proves things about it. Those are theorems about the model - the prime case remains open.
- Status checked
Sources
Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.
- Norman L. Gilbreath, Processing process: the Gilbreath conjecture, Journal of Number Theory 131(12), pp. 2436–2441, 2011. Link
Gilbreath's retrospective account of how the conjecture developed. The observation dates to 1958; this article was published in 2011.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Publisher confirms this is a 2011 retrospective article, not a publication from the 1958 observation.
Proth published a proof eighty years before Gilbreath restated the problem. The argument was later found to be erroneous, and the conjecture is open.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Digitised original confirms Proth's title and prime-difference construction.
- Andrew M. Odlyzko, Iterated absolute values of differences of consecutive primes, Mathematics of Computation 61, pp. 373–380, 1993. Link
Reports a large-scale finite verification and the reduction used to carry it out. This does not establish the infinite conjecture.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: author record.
Author's publication list confirms Mathematics of Computation 61 (1993), pages 373–380.
- Zachary Chase, Zach Hunter, Terence Tao, Gilbreath’s conjecture: a Cramér random model and a deterministic analysis, arXiv:2607.08712, 2026. Link
Analyses a random model with the primes’ gap structure and proves deterministic results about it. It does not settle the prime case.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: author record.
Author submission confirms all three authors, title, July 2026 date and random-model scope.
Standard reference for the problem’s status; the Gilbreath conjecture appears among the prime-sequence problems.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Publisher confirms the author, third edition and 2004 print publication. This check does not verify every section attribution.
- A036262 - Gilbreath array read by antidiagonals, The On-Line Encyclopedia of Integer Sequences. Link
The triangle itself, as an integer sequence.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Checked the sequence identifier, definition and displayed initial terms on the database entry.
Related by mechanism
Connected by how they work, not by sharing a topic label.