Ulam Spiral of Primes

Integers are written on a square spiral outward from the centre; primes are marked. Set the number at the origin with the URL parameter ?start=N (e.g. ?start=41).

prime non-prime origin