Ulam Spiral or Prime Spiral

Version 2.0.0 (1.14 KB) by Rebanta Dey
Prints Prime Spiral Pattern


Updated 6 Mar 2020

View License

Ulam Spiral was discovered by mathematician Stanisław Ulam in 1963 which is a graphical representation of (p,p) where p is the prime number in polar coordinate. The program first finds all the prime number from 0 to the maximum range and plots it in (p,p) fashion in the polar coordinate.

Cite As

Rebanta Dey (2023). Ulam Spiral or Prime Spiral (https://www.mathworks.com/matlabcentral/fileexchange/74435-ulam-spiral-or-prime-spiral), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added Comments