← Home · Mathematics Today

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

N = 3,000

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.

Upper bound N
3,000
 
Primes π(N)
0
 
Dominant structure
 
 
Plotted points
0
 

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

Continued-fraction convergents of 2π
Convergent p/qDecimal|2π − p/q|Drift per +pArms and prime occupancy
6 / 16.0000002.83 × 10⁻¹−0.283 rad6 arms (2 hold primes)
19 / 36.3333335.02 × 10⁻²+0.150 rad19 arms (18 hold primes)
25 / 46.2500003.32 × 10⁻²−0.133 rad25 arms (20 hold primes)
44 / 76.2857142.53 × 10⁻³+0.0177 rad44 arms (20 hold primes)
333 / 536.2830191.66 × 10⁻⁴−0.0088 rad333 arms (216 hold primes)
710 / 1136.2831865.34 × 10⁻⁷+0.000060 rad710 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.

← All of Mathematics Today