Prime numbers spiral
Version 1.2 (2.67 KB) by
Nicolas Douillet
Function to display the prime number spiral and the prime squares spiral. Also check primes sum and prime squares spiral length.
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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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.