![]() |
|
|
#12 |
|
Jan 2003
far from M40
53 Posts |
To your first question: Prime95 is specialised on Mersenne Numbers 2^p-1. To test numbers of a different form, there are other programs like PFGW.
To your second question: As Cheesehead posted, each such prime must be a Fermat Prime 2^(2^n) + 1. To your third question: Yes. This is so, because 6 * 6 = 36 = 6 (mod 10) and the residue of a product or sum won't change if you reduce the factors / summands to their residues before multiplying / adding them. Benjamin |
|
|
|
|
|
#13 |
|
22×33×59 Posts |
Please dont recommend PFGW, to a novice user.
Besides it is much slower than LLR, please see http://groups.yahoo.com/group/openpfgw/message/374 LLR is a generalized mersenne test for primes of the form (k*2^n-1) Come join us at the 15k search forum here. ;) |
|
|
|
#14 |
|
Jun 2003
The Computer
6108 Posts |
So I guess you might as well do the old 2^p-1 so it would go the fastest.
I was thinking with the 2^p+1 and 16^p+1 you can find all three types of primes (regular, Mersenne, and Fermat) that you wouldn't with 2^p-1. |
|
|
|
|
|
#15 | ||
|
Jan 2003
far from M40
53 Posts |
Quote:
Quote:
For some of them, like the Mersenne - Numbers, special algorithms are known to determine their primality. Others can only be tested with general primality tests. By the way, if you set a = 2^(2^k), b = 1 in the formula, I stated, you can see that every even power of two plus 1 is devisable at least by a Fermat - Number. So sorry for making such a fuss about nothing. Benjamin |
||
|
|
|
|
|
#16 | |
|
"Sander"
Oct 2002
52.345322,5.52471
4A516 Posts |
Quote:
LLR is faster then PRP and PFWG for numbers of the form k*2^P-1, but a while ago i did some tests on numbers of the form K*2^P+1 and all 3 had about the same speed (with the latest PFGW slightly faster then the others) |
|
|
|
|