Andrica's Conjecture

2 visualizzazioni (ultimi 30 giorni)
Jesús Zambrano
Jesús Zambrano il 15 Dic 2024
Modificato: Torsten il 15 Dic 2024
I'd like to get a simple MATLAB code showing the Andrica's conjecture.
More about it can be found here: Andrica's conjecture - Wikipedia

Risposta accettata

Torsten
Torsten il 15 Dic 2024
Modificato: Torsten il 15 Dic 2024
Use
nthprime(1:n+1)
to generate the vector of the first n+1 prime numbers.
The rest should be simple.

Più risposte (0)

Categorie

Scopri di più su Discrete Math in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by