No BSD License  

Highlights from
EPRIMES

Be the first to rate this file! 1 Download (last 30 days) File Size: 16.01 KB File ID: #5906

EPRIMES

by Michael Kleder

 

21 Sep 2004 (Updated 24 Sep 2004)

Find the first n-digit primes in consecutive digits of e.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
symbolic math Michael Kleder 22 Oct 2008 07:31:52
primes Michael Kleder 22 Oct 2008 07:31:52
consecutive digits Michael Kleder 22 Oct 2008 07:31:52
google Michael Kleder 22 Oct 2008 07:31:52
mathematics Michael Kleder 22 Oct 2008 07:31:52

Contact us at files@mathworks.com