Prime numbers spiral

Function to display the prime number spiral and the prime squares spiral. Also check primes sum and prime squares spiral length.
7 téléchargements
Mise à jour 29 juin 2025
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 ! ;-)

Citation pour cette source

Nicolas Douillet (2025). Prime numbers spiral (https://github.com/NicolasDouillet/prime_numbers_spirals/releases/tag/v1.3), GitHub. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2019b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.3

See release notes for this release on GitHub: https://github.com/NicolasDouillet/prime_numbers_spirals/releases/tag/v1.3

1.2

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.