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 (2026). 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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
