Ulam's spiral


In 1963, during a boring lecture, Stan Ulam was doodling on his squared notepad. He arranged the positive integers in a square spiral pattern and noticed that when he marked the prime ones they seemed to concentrate themselves in diagonal lines.


He investigated it further using the MANIAC computer and found quite distinct lines of primes. In fact the numbers on the diagonal, horizontal or vertical lines are all of the form 4n2+an+b,nN4n^{2} + an+b, n \in \mathbb{N} for integers a,ba, b and quadratic formulae like this are known to sometimes produce high densities of primes.

For example on this diagram:


the primes of the form 4n22n+414n^{2} -2n+41 have been marked in blue and most of them are on a distinct diagonal straight line.

Shortly afterwards Martin Gardner used the spiral in his Scientific American column and the picture appeared on the cover.

Last Updated April 2024