Frequencies of prime gaps

Function to compute and display the cumulated frequencies of gaps between consecutive prime numbers
2 Downloads
Aktualisiert 22. Jun 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 !

Zitieren als

Nicolas Douillet (2024). Frequencies of prime gaps (https://github.com/NicolasDouillet/frequencies_of_prime_gaps/releases/tag/v1.0), GitHub. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2019b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.