Spiral of Primes

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The natural numbers are arranged along an Archimedean spiral so that the squares 1, 4, 9, … are on the axis, with the primes drawn in blue, up to a circle of radius . The spiral is parametrized in polar coordinates by , . Also shown is the curve given by , (red), and its intersections with the spiral (purple boxes).

Contributed by: Enrique Zeleny (November 2012)
Open content licensed under CC BY-NC-SA




[1] R. Sacks. Number Spiral. (2007) www.numberspiral.com.

[2] H. Hahn. "The Distribution of Prime Numbers on the Square Root Spiral." arXiv. (Jan 9, 2008) arxiv.org/abs/0801.1441.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.