# Where can I find a list of large prime numbers [closed]

A repository of say 13 digit prime, 15 digit primes etc.

## closed as off-topic by Saad, JMP, Jimmy R., A. Goodier, BallBoyMar 22 '18 at 16:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Saad, JMP, Jimmy R., A. Goodier
If this question can be reworded to fit the rules in the help center, please edit the question.

• Wikipedia , there are lot of sequences, just find a sequence which increases fast enough, you can easily make it to 13 digit or 15 digit, but various of them might be omitted the kind of sequence depend upon how many you require. – Mann May 7 '15 at 6:37
• (1) Download Pari/GP from pari.math.u-bordeaux.fr. (2) run forprime(n=10^13,10^14,print(n)). Enjoy your big list of primes. Change the bounds as desired. There is lots of software that can do this of course -- primesieve from primesieve.org is another good source. The latter especially will generate them much faster than you could download a list (unless you have an Apple // with fast internet). – DanaJ May 7 '15 at 6:47
• BTW FYI the largest known prime number is $2^{257885161}-1$ ** Here are some links:** >>>primes.utm.edu/lists/small/millions >>>bigprimes.net/archive/prime Wikipedia: >>>en.wikipedia.org/wiki/List_of_prime_numbers – NeilRoy May 7 '15 at 6:56
• @AlonsodelArte Good quote and you are welcome! – NeilRoy May 13 '15 at 15:46

This website here provides a list of many known prime numbers, and You can actually find very large primes there, including 13,15 digits primes, and even way more than that

• All known prime numbers? I don't think so. For example, I doubt that $3125250912230709951372256510072774348164206451981118444862954305561681091773335180100000000000000000537$ is on the list (well, maybe it wasn't known five minutes ago, but it is now). – Robert Israel May 7 '15 at 6:42
• Most of them :D – alkabary May 7 '15 at 6:48
• I think "...lists of many prime numbers..." is more accurate. "all known" is absurd, and "most known primes" isn't true either. – DanaJ May 7 '15 at 6:52
• Ok , i will edit that – alkabary May 7 '15 at 7:00

There are $308,457,624,821$ 13 digit primes and $26,639,628,671,867$ 15 digit primes. I suppose somebody might waste some terabytes with lists of all of them, but they'll take a while to download..

EDIT: Google did not find a match for the $13$ digit prime 4257452468389. So maybe there is no Google-accessible list of all $13$ digit primes on the internet. Some time after I post this, I imagine Google will get a hit, namely this posting.

• Perhaps they are stored as differences. You could store all the 13 digit primes in ~300GB (simple method: store (gap-2)/2 as a byte with escape code). It'd be so much easier to just download and run primesieve, Pari/GP, Perl/ntheory, or some other tool. – DanaJ May 7 '15 at 18:03
• I wonder how efficiently zip would compress the file. – Robert Israel May 7 '15 at 19:42
• Looking at the first 36M 13 digit primes as a text file, gzip -9 and zip use about 2.7 bytes per prime. bzip2 -9 is 3.1 bytes/prime. I didn't test xz. The gap difference file would be basically no compression, though one could get slightly better results using things like rice or exponential gamma coding. – DanaJ May 7 '15 at 21:02