mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2003-08-19, 05:49   #1
hyh1048576
 
Jun 2003

1008 Posts
Default Does Prime95 has a list of primes inside it???

I'm wondering this because when trying to write a math program, I came across some trouble. :(

Does Prime95 has a list of primes inside it???(If so, it will be quite large :? ) When we try to factor a Mersenne number Mp, how does the program know all the primes(<2^67 or 2^66) with the form 2kp+1? or it first find them out, then try to factor Mp? :? ;) :?
hyh1048576 is offline   Reply With Quote
Old 2003-08-19, 06:29   #2
ColdFury
 
ColdFury's Avatar
 
Aug 2002

1010000002 Posts
Default

A simple sieve suffices for generating a list of primes.
ColdFury is offline   Reply With Quote
Old 2003-08-19, 07:51   #3
trif
 
trif's Avatar
 
Aug 2002

2·101 Posts
Default

From http://www.mersenne.org/math.htm

Quote:
One very nice property of Mersenne numbers is that any factor q of 2P-1 must be of the form 2kp+1. Furthermore, q must be 1 or 7 mod 8. A proof is available. Finally, an efficient program can take advantage of the fact that any potential factor q must be prime.

The GIMPS factoring code creates a modified sieve of Eratosthenes with each bit representing a potential 2kp+1 factor. The sieve then eliminates any potential factors that are divisible by prime numbers below 40,000 or so. Also, bits representing potential factors of 3 or 5 mod 8 are cleared. This process eliminates roughly 95% of potential factors. The remaining potential factors are tested using the powering algorithm above.
trif is offline   Reply With Quote
Old 2003-08-19, 20:19   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

35·31 Posts
Default

Trif is correct, prime95 does not have a list of primes inside it.
Prime95 is online now   Reply With Quote
Old 2003-08-20, 09:24   #5
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Quote:
Originally Posted by Prime95
Trif is correct, prime95 does not have a list of primes inside it.
I thought prime95 does have a list with all known mersenne primes inside?
(Yes, i know this is not what the original question is about)

On 04 Sep 1996, 1 day after M1257787 was announced (which was found a couple of months earlier) Luke Welsh wrote to the mersenne mailing list:

Quote:
....... I somehow kept in under my hat. George used
my machine as a backup site, so I had all of the source and HRF
databases. When I started to work a little on the factoring routines,
I noticed a small file called 'primes'. It had 34 entries.

--Luke
smh is offline   Reply With Quote
Old 2003-08-20, 13:38   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

35·31 Posts
Default

Yes, prime95 has a list of all known Mersenne primes in it.

Luke was refering to backups of the master database. For a time, I zipped up the master database for backup on his computer.
Prime95 is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Here is a list of Mersenne Primes MattcAnderson MattcAnderson 0 2017-05-27 14:00
List of megabit primes found Lennart Twin Prime Search 58 2017-05-05 14:15
List of all base 5 primes? gd_barnes Sierpinski/Riesel Base 5 2 2008-07-01 04:09
Mistake in List of Primes rogue Sierpinski/Riesel Base 5 1 2007-02-23 00:35
List of primes Primeinator Math 18 2005-03-20 00:50

All times are UTC. The time now is 16:39.


Sun Aug 1 16:39:56 UTC 2021 up 9 days, 11:08, 0 users, load averages: 1.46, 1.38, 1.50

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.