Prime numbers spirals

Functions to display prime numbers spiral and prime squares spiral. Also check primes sum and prime squares spiral length.
4 Downloads
Updated 31 Dec 2023

View License

Input N is an integer scalar, N > 3.
Once downloaded, typewrite 'help pnumbers_spiral' and/or 'help pnumber_squares_spiral' in Matlab console for support.
To benefit from the file documentation attached, be sure to download the file, not to just copy and paste it.
Please don't forget to rate if this code helped you. Thanks ! ;-)

Cite As

Nicolas Douillet (2024). Prime numbers spirals (https://www.mathworks.com/matlabcentral/fileexchange/156916-prime-numbers-spirals), 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
1.1

Fixed overview Ctlrl +C/V mistake.

1.0.0