Ulam Spiral or Prime Spiral

Prints Prime Spiral Pattern

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0

Added Comments

1.0.0