Jump to content
  • Advertisement
Sign in to follow this  
Ezbez

Lists of prime numbers

This topic is 4839 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Lately I have been interested in prime numbers. One thing that I'd like to know about is if there is any list of (known)primes on the web. I'm looking for a list that does contain 'small' primes(just a couple digits). I've found a list of primes up to 1,000 but I'd like to cheek numbers of up to around 1,000,000. The best list seems to only have 'large' primes. I'm not sure if this is the right board, but you can't go wrong in the lounge! Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
You could always write a quick and dirty prime-detector and set a loop to process primes all day while you go to work/school/whatever and make a list for yourself. Couldn't possibly be more than 50 lines of C.

Share this post


Link to post
Share on other sites
Well, I tried that. And I made an important discovery, there are only three primes between 1 and one million: 1, 2, and 1,235,364. And yes, the last one is more than one million. I'll try working on it some more.

Share this post


Link to post
Share on other sites
Yes, that is a nice prime. I should add it. Along with 27. 27 *should* be a prime. It looks like a prime. It smells like a prime, but nooo its not a prime.

OH, thanks for the helpful post Sneftel. ;)

Share this post


Link to post
Share on other sites
I really gotta learn html tags. Here's the first 100,000 primes:

http://primes.utm.edu/lists/small/100000.txt

Here's the first 5.8 million primes:

http://www.geocities.com/primes_r_us/small/index.html

Here's an interface that has the first 98 million primes stored(you need to specify a range)

http://www.rsok.com/~jrm/printprimes.html

Share this post


Link to post
Share on other sites
Quote:
Original post by Sneftel
My favorite prime number is 17. If your list doesn't have that one, you should add it.


Sorry, but 37 is a much nicer prime. [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by Ezbez
Lately I have been interested in prime numbers. One thing that I'd like to know about is if there is any list of (known)primes on the web. I'm looking for a list that does contain 'small' primes(just a couple digits). I've found a list of primes up to 1,000 but I'd like to cheek numbers of up to around 1,000,000. The best list seems to only have 'large' primes. I'm not sure if this is the right board, but you can't go wrong in the lounge!

Thanks in advance!

Generate your own arbitrary list here.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!