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).