Frequencies of prime gaps

Function to compute and display the cumulated frequencies of gaps between consecutive prime numbers
2 download
Aggiornato 22 giu 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 !

Cita come

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

Compatibilità della release di MATLAB
Creato con R2019b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.