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일

0 개 추천

Use
nthprime(1:n+1)
to generate the vector of the first n+1 prime numbers.
The rest should be simple.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

질문:

2024년 12월 15일

편집:

2024년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by