Factoring Lab

Receipts for factoring ideas: which work, which don’t, and how fast they stop working.

A5 · The graveyardReal, already known

Predicting the next prime gap

look rhythmic, but their statistics match the Cramér and models. Totals are predictable; the next gap is not.

The idea

The average gap near x is about ln x (the ). The shape of the gap distribution is predicted almost exactly by : that are multiples of 6 are extra common, because they avoid 2 and 3. That is a real, known pattern, but it describes how often gaps happen, not which comes next.

Watch it

Sieving…

The test: predict the next gap

Three predictors for every gap in the window: “same as the last gap”, “the most common gap”, and the best guess given the last gap. If had a rhythm, the last ones would help. They barely do.

Fig. A5.2How well each model describes the gaps (lower is better), and how often each predictor guesses the next gap

Measuring…