Frequencies of prime gaps

Function to compute and display the cumulated frequencies of gaps between consecutive prime numbers
1 téléchargement
Mise à jour 22 juin 2024
Once downloaded, typewrite 'help frequencies_of_prime_gaps' in Matlab console for support.
To benefit from the file documentation attached, be sure to download the files, not to just copy and paste them.
Input
  • delta : an even integer >= 2, the choosen gap;
  • N : the integer upper limit to sample the vector of primes. N > 3;
Output
  • ff : the frequency of delta on the range |[2; N]|;
Exemple below : ff = frequencies_of_prime_gaps(2,101);
Please don't forget to rate if this code helped you to explore gaps between prime numbers ;-). Thanks you !

Citation pour cette source

Nicolas Douillet (2024). Frequencies of prime gaps (https://github.com/NicolasDouillet/frequencies_of_prime_gaps/releases/tag/v1.0), GitHub. Récupéré 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.0

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.