Prime numbers spiral

Function to display the prime number spiral and the prime squares spiral. Also check primes sum and prime squares spiral length.
2 Downloads
Updated 24 Aug 2024
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 files.
Please don't forget to rate this code if it helped you. Thanks ! ;-)

Cite As

Nicolas Douillet (2024). Prime numbers spiral (https://github.com/NicolasDouillet/prime_numbers_spirals/releases/tag/v1.2), GitHub. 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.2

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.