Skip to content
EntityQ842172· pop 32· linked from 58 articles

Ulam spiral

Sign in to save

Also known as Ulam cloth

a visualization of the prime numbers formed by arranging the integers into a spiral

Wikidata facts

Subclass of
spiral
Named after
Stanisław Ulam
Main subject
prime number
Image
Ulam spiral howto primes only.svg
Show 5 more facts
discoverer or inventor
Stanisław Ulam
time of discovery or invention
1963-00-00
facet of
prime number
maintained by WikiProject
WikiProject Mathematics
Commons category
Ulam spiral
Sources (1)

via Wikidata · CC0

~15 min read

Encyclopedic overview

Ulam spiral of size 201×201. Black dots represent prime numbers. Diagonal, vertical, and horizontal lines with a high density of prime numbers are clearly visible. For comparison, a spiral with random odd numbers colored black (at the same density of primes in a 200x200 spiral). The Ulam spiral or prime spiral is a graphical depiction of the set of prime numbers, devised by mathematician Stanisław Ulam in 1963 and popularized in Martin Gardner's Mathematical Games column in Scientific American a short time later. It is constructed by writing the positive integers in a square spiral and specially marking the prime numbers.

Ulam and Gardner emphasized the striking appearance in the spiral of prominent diagonal, horizontal, and vertical lines containing large numbers of primes. Both Ulam and Gardner noted that the existence of such prominent lines is not unexpected, as lines in the spiral correspond to quadratic polynomials, and certain such polynomials, such as Euler's prime-generating polynomial x − x + 41, are believed to produce a high density of prime numbers. Nevertheless, the Ulam spiral is connected with major unsolved problems in number theory such as Landau's problems. In particular, no quadratic polynomial has ever been proved to generate infinitely many primes, much less to have a high asymptotic density of them, although there is a well-supported conjecture as to what that asymptotic density should be.

Excerpted from Wikipedia’s “Ulam spiral” article, available under the CC BY-SA 4.0 licence.