Frequencies of prime gaps
Versione 1.0 (1,09 KB) da
Nicolas Douillet
Function to compute and display the cumulated frequencies of gaps between consecutive prime numbers
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 LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
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.