Primearium Lab · Act I

The prime wheel

Wrap the numbers around a circle of 2, then 6, 30, 210, 2310 and 30030. Most spokes go dark: they hold only multiples of 2, 3, 5, 7, 11 or 13. The glowing spokes are the only roads a prime can take - and each of them splits into p − 1 new roads, again and again, like a fractal.

Circle of 2 2
Spokes left open
Open share φ(P)/P

    Hover a ring · scroll or pinch to zoom · arrow keys change the base

    Understand

    Why the spokes split

    Write the numbers around a circle with 30 places: 1, 2, … 30, then 31 lands back on 1, 32 on 2, and so on. Every number in the same place has the same remainder after dividing by 30. If that remainder is even, or a multiple of 3 or 5, every number in that spoke is too. Only 8 of the 30 spokes survive: 1, 7, 11, 13, 17, 19, 23, 29.

    Now make the circle 7 times bigger (210). Each open spoke r becomes 7 spokes: r, r + 30, r + 60, … r + 180. Exactly one of these 7 is a multiple of 7 and goes dark; the other 6 stay open. That is the fractal: 1 → 2 → 8 → 48 → 480 → 5760 open spokes, each time multiplied by p − 1.

    The open share keeps shrinking - 50 %, 33 %, 27 %, 23 %, 21 %, 19 % - but never reaches zero quickly: it falls only like 1/ln p. Meanwhile, primes get more concentrated on the open spokes: on the 30030-wheel, about two in five open numbers between 100 001 and 1 000 000 are prime.

    Proven This is the wheel behind the sieve of Eratosthenes, known for centuries. It is not a formula for primes: an open spoke is only a candidate (try 289 = 17 × 17 or 30031 = 59 × 509).

    Explore

    The numbers, counted

    Base P Open spokes φ(P) φ(P)/P Open numbers Primes among them Gain

    Observed up to N Exact counts made in your browser with a sieve (the second range in a background worker), and checked by a separate verification program. The gain is P/φ(P), up to the tiny edge effect of the range.

    Primearium Lab · Act II

    The base-30 map: interference

    Keep only the 8 open spokes of the 30-wheel and lay them side by side as columns. Row q holds 30q + 1, 30q + 7, … 30q + 29. Primes glow. Now switch on a layer: every multiple of 7 is crossed out in cyan - not at random, but in a perfectly regular rhythm. Add 11, 13, 17… Each layer is a wave with its own period; where they overlap they interfere. What no wave ever touches is exactly the primes.

    Understand

    Why the crosses form waves

    In column r the numbers are r, r + 30, r + 60, … Going down one row adds 30. Adding 30 again and again cycles through all remainders modulo 7, so exactly one row in every 7 is a multiple of 7 - the same rhythm forever.

    Which row? We need 30q + r ≡ 0 (mod 7). Since 30 ≡ 2 and 2 · 4 = 8 ≡ 1, the inverse of 30 is 4, and q ≡ −4r (mod 7). Column 1 is crossed at rows 3, 10, 17, …; column 7 at rows 0, 7, 14, … Each column has its own phase, which is why the crosses run in slanted bands.

    Layer p repeats every p rows. Several layers together repeat only after the product of their periods: 7 · 11 · 13 = 1001 rows, 30 030 numbers. Within that period the overlaps look irregular - a moiré made of perfectly regular waves.

    Wonder

    What to look for

    Zoom all the way out and scroll deep. The coloured stripes keep their slopes and rhythms no matter how far you go, while the glowing primes thin out slowly - there are fewer of them, but they never stop.

    Turn on All layers up to √N: every composite gets the colour of its smallest prime factor. Cyan (7) is everywhere, larger primes leave rarer and rarer marks. The dark cells left between them are the primes.

    Proven A number n is prime exactly when no prime p ≤ √n divides it, so surviving all layers up to √N means prime (except 1, which is not prime by definition). This is the sieve of Eratosthenes, about 2200 years old.

    ResearchFor mathematicians
    Proven
    Proven
    Proven
    Proven
    Proven
    Observed up to N
    Observed up to N

    References