Primearium research · our own computation
Primes are more orderly than chance
Watch two number lines near one billion. Each window holds 21 integers, enough for about one prime on average. Random drops land on the first line at about the same average rate as real primes appear on the second. Pink marks empty windows. Gold marks windows with at least three hits.
empty window 3+ in one window window = 21 numbers
The live tally uses the stretches shown here. The chart below uses a much larger sample of windows.
Count the windows
Rings: what this page has counted live so far in the animation above (primes / rain).
View percentages for counts 0–6
Primes are rigid
Why? A prime makes its neighbours slightly less likely at some distances and more likely at others - the pattern described by the Hardy-Littlewood conjecture for prime pairs. Added up over a long window, these tiny correlations cancel the randomness more and more: a slow, logarithmic stiffening, roughly 1 - (ln h - B0)/ln x.
What is known, what is guessed, what is measured
This page shows Primearium's own computation, described in our report "02 - Are the primes more regular than random?" (research team, 28 November 2026). Exact prime counts come from a segmented sieve checked against π(109) = 50,847,534.
Conjecture
Proven
Gallagher (1976) proved a conditional theorem. If the Hardy–Littlewood prime-tuple estimates hold uniformly in the needed range, the limiting distribution of prime counts in windows of length λ ln x is Poisson with mean λ.
Related: gap resonance (which gaps d are popular) and do primes have memory?
For mathematicians
definitions, tables, significance, references
The statistic
Range [A, B]; for even d ≤ D let c(d) = #{p : A ≤ p, p + d ≤ B, p and p + d prime}, E(d) = S(d) ∫ dt / (ln t · ln(t+d)) with the Hardy-Littlewood singular series S(d) = 2C2 ∏q | d, q > 2 (q-1)/(q-2), z(d) = (c(d) - E(d)) / √E(d), and sD = the sample standard deviation of z(2), …, z(D). Independent Poisson counts give E[s²] = 1. Random wheel models (Cramér 1936 for W = 1, Granville 1995 for W > 1) declare n coprime to W prime with probability (W/φ(W))/ln n; their expected counts are exact.
sD = sdd ≤ D [ (c(d) − E(d)) / √E(d) ] , E[s²] = 1 (Poisson)
Scatter s for d ≤ 1000
The explanation (heuristic)
Assuming Hardy-Littlewood uniformly, the covariance of pair counts in a window of length H is c0 + A/L + B/L² (L = ln x). The A/L term comes from pairs sharing a prime (random models have it too, with a smaller constant); the B/L² term from long-range 4-point correlations, which grows with H and is absent in random models - the pair-count analogue of the Montgomery-Soundararajan effect.
Short intervals
Var N(x, h) / E N(x, h) ≈ 1 − (ln h − B0) / ln x , B0 = 1 − γ − ln 2π
Not done: a closed formula for B(H), the Hardy-Littlewood sum for a whole range (k up to 9·108), and any proof.
Prime constellations
Observed counts between 108 and 109 and their Hardy–Littlewood predictions (conjecture). The offsets are measured from the first prime in each pattern.
References
- G. H. Hardy, J. E. Littlewood, "Some problems of 'Partitio numerorum'; III", Acta Mathematica 44 (1923), 1-70.
- H. Cramér, "On the order of magnitude of the difference between consecutive prime numbers", Acta Arithmetica 2 (1936), 23-46.
- A. Granville, "Harald Cramér and the distribution of prime numbers", Scandinavian Actuarial Journal 1995(1), 12-28.
- P. X. Gallagher, "On the distribution of primes in short intervals", Mathematika 23 (1976), 4-9.
- D. A. Goldston, H. L. Montgomery, "Pair correlation of zeros and primes in short intervals", in Analytic Number Theory and Diophantine Problems (Stillwater 1984), Birkhäuser 1987.
- H. L. Montgomery, K. Soundararajan, "Primes in short intervals", Communications in Mathematical Physics 252 (2004), 589-617.
- OEIS A006880 (π(10n)), A005597 (twin prime constant).