The Game Room

PRIME LATTICE

Place every integer on a tiling and watch the primes light up.

  • Prime number explorer
  • 1 player
  • Free
Prime Lattice, a frame from the gameOpen it

The pitch

Prime Lattice places the integers on a tiling you choose and lights up the primes, so you can look for the lines they make. There are seven layouts, from the Ulam and Sacks spirals to a hex spiral, triangles and the Gaussian primes.

Highlight one prime family at a time, such as twin primes or Mersenne primes, and inspect any tile. It is the successor to a Prime Number Table from 2014.

Screenshots

  • The Ulam spiral, primes lit in teal along its diagonals

How to use it

  1. Pick a tiling.
  2. Set how many numbers to place, from 9 up to 300,000.
  3. Choose a prime family to highlight, or keep all primes one color.
  4. Scroll to zoom, drag to pan, click a tile to see its number.
  5. Save the view as a PNG.

Controls

Keyboard and mouse

No keys needed. Mouse wheel zooms, drag pans, click a tile to inspect it.

Touch

One finger drags, two fingers pinch to zoom.

Details

  • Seven tilings: Ulam spiral, square grid, hex spiral, triangles, Sacks spiral, prime walk, Gaussian primes
  • Highlights for twin, cousin, sexy, Sophie Germain, safe, Mersenne, palindromic and emirp primes
  • Grid width can be set to a primorial (2, 6, 30, 210)
  • Save any view as a PNG

Facts

PriceFree
Players1
Plays onKeyboard and mouse, Touch
Runs inAny modern browser, phone or desktop
Open Prime Lattice

More games

See all 18