Andrica's Conjecture

3 Ansichten (letzte 30 Tage)
Jesús Zambrano
Jesús Zambrano am 15 Dez. 2024
Bearbeitet: Torsten am 15 Dez. 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Discrete Math finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by