The prime spiral, also known as Ulam's spiral, is a plot in which the positive integers are arranged in a spiral, with primes indicated in some way along the spiral. This construction was first made by Polish American mathematician Stanislaw Ulam (1909-1986) in 1963 while doodling during a boring talk at a scientific meeting.

Unexpected patterns of diagonal lines are apparent in such a plot.

SPIRAL GRID DIMENSION: 51

Please be patient! Bigger the number; longer it will take to load :(

SHOW COMPOSITE NUMBERS

SHOW SPIRAL

HIGHLIGHT TWIN PRIME

HIGHLIGHT MERSENNE PRIME