Andrica's Conjecture

조회 수: 1 (최근 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에서 MATLAB Report Generator에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by