Three interactive visualizations that reveal the hidden structure of primes — from Ulam's spiral to the chaos of gaps.
Numbers arranged in a spiral — primes appear as striking diagonal lines. Discovered by Stanisław Ulam in 1963 during a boring meeting.
The distance between consecutive primes. Gap +6 always dominates — a structural necessity since 6 = 2×3.
Step through the ancient algorithm that finds all primes. Click a number or use the controls to eliminate multiples one prime at a time.