← All projects Focused build Evaluated
Grimm's conjecture
A certified census of every prime gap through 10¹⁶
A census of every prime gap through 10¹⁶, each nontrivial case saved with an independently checked certificate, testing a new strengthening of Grimm's conjecture and classifying the 155 places where the simple explanation fails.
Problem
Grimm's conjecture (1969) asks whether every run of consecutive composite numbers can be given distinct prime divisors, one each. It is open, and the refereed computer check stopped at 1.9 × 10¹⁰ in 2006.
My contribution
I designed and ran a census of every prime gap through 10¹⁶, with a CPU producer, a GPU-assisted second producer, an independent certificate checker, and receipts that tie every printed number to the data, directing AI coding agents throughout.
Outcome
The census verifies Grimm's conjecture through 10¹⁶, finds no failure of a new and stronger conjecture in 1,200,898 subfamilies, and classifies the 155 graphs where the simple explanation fails. Both papers, all certificates and the code are public under a DOI.
Figure — drawn from the record
-
The smallest contest
In the gap after 7, both 8 = 2³ and 9 = 3² are built only from primes no larger than the run's length. Each still gets a prime of its own. The article shows no other run this short ever needs a matching.
-
The first exception
27 = 3³ has no prime of its own, because 3 also divides 24, so 24 must take 2. This is the first of the 155 gaps where the simple explanation fails, and the stronger inequality holds here exactly, with no room to spare.
-
Four numbers, five primes
No member owns a prime outright, yet any four of the five primes still give each number its own: a uniform matroid hiding in a prime gap. The four numbers are also multiplicatively independent, as Langevin's conjecture predicts.
-
The last exception
With t = 2⁶·17³, the members are 34(t² − 1) and 34t² = 2¹³·17⁷. The first carries both of the second's primes and seven more of its own. Every graph above this one, through 10¹⁶, has a private prime for every member.
-
A shape that recurs, rescaled by 37
The members are 37(t⁴ − 1) and 37t⁴ = 2⁴·37⁹, with t = 2·37²: a copy at scale 37 of a pair that also turns up at scales 6 and 9 lower in the census. They share 37, but 2 belongs to the second number alone. Between 10¹⁵ and 10¹⁶ it is the only graph where a member has just two primes to choose from.
-
The longest run needs no contest
1,131 composites in a row, the longest run below 10¹⁶. Only one member is built entirely from primes no larger than 1,131; every other member has a prime factor too large to divide a neighbour, so the census does not even archive it.
Figure data as a table
| Gap | Member | Factors | Assigned |
|---|---|---|---|
| 1. (7, 11), k = 3 | 8 | 2³ | 2 |
| 9 | 3² | 3 | |
| 2. (23, 29), k = 5 | 24 | 2³·3 | 2 |
| 25 | 5² | 5 | |
| 27 | 3³ | 3 | |
| 3. (523, 541), k = 17 | 525 | 3·5²·7 | 5 |
| 528 | 2⁴·3·11 | 3 | |
| 539 | 7²·11 | 7 | |
| 540 | 2²·3³·5 | 2 | |
| 4. (3,361,494,409,157, 3,361,494,409,243), k = 85 | 3,361,494,409,182 | 2·3²·7²·13·17·19²·23·31·67 | 3 |
| 3,361,494,409,216 | 2¹³·17⁷ | 2 | |
| 5. (2,079,387,836,721,037, 2,079,387,836,721,259), k = 221 | 2,079,387,836,721,195 | 3·5·7·11·13·17·23·29·37·41·83·97 | 3 |
| 2,079,387,836,721,232 | 2⁴·37⁹ | 2 | |
| 6. (1,693,182,318,746,371, 1,693,182,318,747,503), k = 1,131 | 1,693,182,318,746,974 | 2·11²·167·401·409·467·547 | any (sole member) |
Source: census certificates and the exceptions package, doi:10.5281/zenodo.24638529; extracted 2026-11-30 by scripts/evidence/grimm_gaps.py, which re-factors every member and checks every assignment. Gaps 1 and 6 lie outside the archive by its own rules (a run of three, and a run with a single competing member), so their members are recomputed from the bounding primes.
Take a run of consecutive composite numbers, such as the seventeen between the primes 523 and 541. Grimm’s conjecture, from 1969, says you can hand every member a prime that divides it, without handing out any prime twice. Think of it as a seating plan. A prime larger than the run can only ever divide one member, so the arguments happen only among members built entirely from small primes. Most runs have no argument at all. I built a census that finds every run that does, through 10¹⁶, and saves each seating plan with a proof anyone can check.
The census
A segmented sieve walks every integer up to 10¹⁶ and strips small prime factors to find the members that can compete. A run goes to bipartite matching only when at least two of them remain, and each of the 1,162,195 such runs is written out as a certificate: the gap, its competing members, their prime factors and a matching. CPU producers covered everything below about 1.7 × 10¹⁵, and a GPU-assisted producer covered the rest of the last decade. The GPU sieves and flags candidates, and the host re-verifies every run the GPU reports with a port of the CPU producer’s code. The CPU producer also recomputed a fixed one-in-750 sample of the GPU producer’s work, about 10¹³ integers, and its output was identical byte for byte. The GPU campaign ran as a low-priority background consumer of the GPU timeshare coordinator. When higher-priority work needed the card it yielded, then resumed from its journal.
Checks before claims
An independent checker re-derives every certificate with ordinary division and deterministic primality tests. The prime count up to 10¹⁶ matches the published value exactly, and the census reproduces the counts of both earlier public verifications, to 10¹² and to 10¹³, which others computed independently. Every printed number in the papers is tied to a receipt, a file that records which program produced it from which inputs, with checksums. Before publication, every command in the release’s reproduction guide was rerun from a fresh extraction, and all passed.
What it found
The papers propose a stronger, hereditary form of Hall’s condition. If each of m integers in one gap has at least d distinct prime factors, then together they have at least m + d − 1. All 1,200,898 subfamilies in the census satisfy it. When every member has a prime of its own, one that divides no other member, the inequality follows at once. That simple explanation covers all but 155 of the 1,162,195 graphs, and none of the 155 lies above 3.4 × 10¹². The cover shows them thinning out and stopping, and the figure walks through six real gaps, from 8 and 9 to the longest run below 10¹⁶. The 155 are classified completely and ship as a separate 49 kB package whose checker runs in a fraction of a second.
A companion paper models how often pairs of competing members recur at large heights, with no fitted parameter. Its forecasts were fixed before almost any of the data they cover had been computed. On the census’s last stretch it predicted 60,458.7 ± 491.7 such pairs, and 59,890 occurred. Above the census it predicted 30,661 ± 316, and 30,649 occurred.
How it was built
I directed the research and made the scope and design decisions. AI coding agents (Claude through Claude Code, and OpenAI Codex) wrote and revised the program code, drafted and revised the papers, ran the computations, and carried out fact-checking and review passes under my direction, as the article’s AI-use section states. No result rests on an agent’s judgement alone. Each principal result has an independent implementation or audit. Reviews of drafts, some of them written by AI systems, were checked comment by comment against the papers and the data, and adopted only where correct.
Related projects
- depends on
GPU timeshare — multi-tenant scheduling for one RTX 3090
Its GPU producer ran as a priority-5 background consumer of the timeshare coordinator.
Built with
- Rust
- CUDA
- Python
- bipartite matching
- transversal matroids