Working notes on the primes

Grant Golland’s working notes on how the prime numbers are spread out. Every figure is computed here from a sieve of all 5 761 455 primes below 100 000 000, or with mpmath, and its caption says how. A sibling site, Zeta Zeros, covers the zeros that control these patterns.

Sentences carry a flag: Settled for proved theorems or computations on a stated range, Open for conjectures. A numerical match is never a proof.

Working notes

Prime Distribution

The primes look scattered, yet their count follows a smooth law, they split evenly between remainders, and their fine wobbles are written by the zeros of the zeta function. These pages show each of those facts with a picture computed from real data.

Ratios π(x)/(x/log x) (red) and π(x)/Li(x) (gold) for x from 10 to 10^8 on a log axis, computed from a sieve of all 5761455 primes below 10^8. The first falls slowly toward 1 (1.0613 at 10^8); the second is already 0.99987 at 10^8.
The key picture. Sieve: numpy boolean sieve of Eratosthenes to 108, 23 October 2026 PT, giving π(108) = 5 761 455 (matches the standard value). The ratio π(x)/Li(x) is 0.99987 at 108. Motion is off if your system asks for reduced motion.
  • Settled proved, or computed here on a stated range
  • Open a conjecture; numbers can support it but never prove it

The reading path

Read in order, or jump in. Every page ends with previous and next links.

  1. 1Primes and the sieveSettled · animatedWhat a prime is, and the oldest way to find them all.
  2. 2How many primes: the Prime Number TheoremSettledπ(x), x/log x and Li(x): how the count grows.
  3. 3Chebyshev's bounds and Bertrand's postulateSettledThe first rigorous bounds, and a prime between n and 2n.
  4. 4Dirichlet's theorem: primes in progressionsSettledPrimes split evenly among allowed remainders.
  5. 5Prime races and Chebyshev's biasSettled + conditionalEven split, but one team usually leads.
  6. 6Gaps between primesSettled + OpenAverage gap log p; bounded gaps (Zhang, Maynard); records.
  7. 7Twin primes and the Hardy–Littlewood conjecturesOpen, numerically testedThe conjectured count of twins and other patterns, checked to 10⁸.
  8. 8The explicit formula: primes from zeta zerosSettledRebuilding the prime staircase from zeta zeros.
  9. 9The Ulam spiral, read honestlySettled + OpenDiagonal streaks, and what they do and do not mean.
  10. 10SourcesReferencesPrimary papers and data.

Fourteen computed figures and one live animation. Each opens the full figure with its provenance caption.

Reading path · step 1 of 11