Polar Prime Spiral Explorer
Mathematics Today · December 3, 2026
Plot (r, θ) = (p, p) in radians from N = 100 to 100,000, watch the 44/7 spiral arms straighten into 710/113 radial rays, and compare primes against all integers. Everything runs in your browser; nothing is sent anywhere.
Interactive plot
Tap or click any plotted point to inspect its value and residue classes.
Current view at a glance
Live counts and the dominant rational approximation to 2π at the selected upper bound.
Why the spirals shift from 44 arms to 710 rays
Stepping an integer n forward by 1 rotates its angle by 1 radian. Whenever a positive integer m is close to an integer multiple of 2π, numbers spaced by m land nearly on the same ray. Those good multiples come directly from the continued fraction of 2π = [6; 3, 1, 1, 7, 2, 146, …].
2π ≈ 44/7 ≈ 6.285714 and 2π ≈ 710/113 ≈ 6.283186
| Convergent p/q | Decimal | |2π − p/q| | Drift per +p | Arms and prime occupancy |
|---|---|---|---|---|
| 6 / 1 | 6.000000 | 2.83 × 10⁻¹ | −0.283 rad | 6 arms (2 hold primes) |
| 19 / 3 | 6.333333 | 5.02 × 10⁻² | +0.150 rad | 19 arms (18 hold primes) |
| 25 / 4 | 6.250000 | 3.32 × 10⁻² | −0.133 rad | 25 arms (20 hold primes) |
| 44 / 7 | 6.285714 | 2.53 × 10⁻³ | +0.0177 rad | 44 arms (20 hold primes) |
| 333 / 53 | 6.283019 | 1.66 × 10⁻⁴ | −0.0088 rad | 333 arms (216 hold primes) |
| 710 / 113 | 6.283186 | 5.34 × 10⁻⁷ | +0.000060 rad | 710 rays (280 hold primes) |
Why primes leave gaps. All integers fill every arm, but a prime larger than a divisor of m must be coprime to m. For m = 44 = 2² × 11, Euler's totient gives φ(44) = 20 prime arms out of 44. For m = 710 = 2 × 5 × 71, φ(710) = 280 rays out of 710 hold primes, and Dirichlet's theorem guarantees every one of them stays populated forever.
Two variations included above
Switch the top control to explore how changing the radial or angular map reveals different number-theoretic structure.
Equal-area: (r, θ) = (√p, p) · Sacks spiral: (r, θ) = (√p, 2π√p)
Equal-area keeps the exact 1-radian angle step so the 44/7 and 710/113 families stay intact, while compressing the radius so outer primes do not thin out. The Sacks spiral places perfect squares along the positive horizontal axis; prime-generating quadratics such as n² + n + 41 then appear as dense curved streaks.