Number Sieve Visualiser

Two views of the Sieve of Eratosthenes: a checkerboard mesh with directional prime lines, and the classic rectangular sieve. N can be set up to 1,000,000 via the number input — but grid views slow noticeably above ~10,000.
5
48

Primes up to N

Legend

No primes selected.
The Sieve of Eratosthenes finds all primes up to N. Mark 2 as prime, then cross out every multiple of 2. Move to the next un-crossed number (3), mark it prime, cross out its multiples. Repeat. Anything left uncrossed is prime.
Select primes below to mark them and cross out their multiples. 1 is neither prime nor composite.
10
44

Primes up to N

Legend

No primes selected.
The Checkerboard Cylinder wraps the checkerboard mesh into a 3D cylinder so the left and right edges connect. Prime lines and divisor connections become helices that spiral around the cylinder, revealing how each prime's multiples align (or misalign) with the column count. Click and drag to rotate, scroll to zoom.
5
Locked — cylinder wraps with offset 0 internally.
Helical mode: every number advances 1 column. Row boundaries become a continuous spiral.
2
100

Primes up to N

The Sieve Cylinder wraps the classic sieve into a 3D cylinder. As you scroll down, numbers wind around the cylinder according to the column count — set columns = 6 and watch primes > 3 cluster into clear vertical stripes! Click and drag to rotate, scroll to zoom.
10
2
100

Primes up to N

The Polar Spiral arranges numbers on a circular grid: angle = (n − 1) mod spokes, radius = ring index. Numbers in the same residue class mod the spoke count line up on the same radial spoke. Primes appear as white cells; composites are tinted red. Toggle primes below to highlight their multiples in the prime's colour.
Try spoke counts of 6, 24, or 30 — primes cluster on specific spokes (those coprime to the spoke count).
24
700

Highlight primes

The Prime Arcs diagram places numbers on a horizontal axis. For each selected prime p, semicircular arcs connect every multiple of p to the next (so arcs have diameter p). Each prime gets its own colour; arcs above the axis hop forward, mirrored arcs below show the same pattern. The visual rhythm of overlapping arcs reveals the density of each prime's multiples.
14

Select primes to draw arcs

Mouse wheel zooms in/out around the cursor. Click and drag to pan. Double-click to reset view.

Legend

No primes selected.