The Ulam spiral is produced by specially marking the prime numbers-for example by circling the primes or writing only the primes or by writing the prime numbers and non-prime numbers in different colors-to obtain a figure like the one below.
In the figure, primes appear to concentrate along certain diagonal lines.