EPRIMES

버전 1.0.0.0 (7.29 KB) 작성자: Michael Kleder
Find the first n-digit primes in consecutive digits of e.
다운로드 수: 3.1K
업데이트 날짜: 2004/9/24

라이선스 없음

Recently, Google Inc. created a few highway billboard signs asking passersby to find the first ten-digit prime within consecutive digits of e.

Certainly the Mathworks File Exchange must address such a challenge!

Unfortunately, the answer to the Google billboard question was quickly published in the media, so the answer is readily available. Nevertheless, if you wish to solve the problem yourself, please feel free to ignore those publications and this program.

This program begins with the first one-digit prime and continues locating larger and larger primes. The program has an arbitrary stoping point at 500 digits. Also, to save space there are only 10,000 stored digits of e, so there is a limit (much larger than 500) to how large your desired prime can be using this code.

Probable prime calculations are employed using Java. (See notes under the function ISPR.M, submitted previously.)

Obvious note: Google is a trademark of Google, Inc.

인용 양식

Michael Kleder (2024). EPRIMES (https://www.mathworks.com/matlabcentral/fileexchange/5906-eprimes), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Discrete Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0