Prime number Spiral

version (1.24 KB) by Asif Iqbal
Plot prime numbers in spiral fasion to see their distribution


Updated 26 Mar 2017

View License

Prints out a CCW spiral where each plot is a prime numbers between 0 and 40902. Total of 4282 prime numbers biggest one being 40897

Cite As

Asif Iqbal (2022). Prime number Spiral (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
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!