Andrica's Conjecture

2 次查看(过去 30 天)
Jesús Zambrano
Jesús Zambrano 2024-12-15
编辑: Torsten 2024-12-15
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

采纳的回答

Torsten
Torsten 2024-12-15
编辑:Torsten 2024-12-15
Use
nthprime(1:n+1)
to generate the vector of the first n+1 prime numbers.
The rest should be simple.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Math 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by