![]() |
|
|
#1 |
|
Sep 2009
1001002 Posts |
If P divides 2^q -1 and P is in the form 2kq +1, is P definitely a prime?
If yes, is this not another primality test??? |
|
|
|
|
|
#2 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
3·2,141 Posts |
No. 256999 divides 2^29-1 and is 2*4431*29+1, but is 233*1103
in general the product of factors of a Mersenne number satisfies your condition |
|
|
|
|
|
#3 | |
|
Sep 2009
22×32 Posts |
Quote:
So if we start from k=1 and check if 2kq +1 divides 2^q -1, then will we get a prime? ( a sophie germain prime). Can this be a primality test to find Sophie Germain primes? |
|
|
|
|
|
|
#4 | |
|
Oct 2007
Manchester, UK
22×3×113 Posts |
Quote:
*Of course, if at any point your CPU made a mistake and missed a factor, it might not be prime. Generally there are much faster methods for primality testing of numbers, rather than simply trial dividing, even though in this case you know a potential factor must be of a certain form. While it would be pretty quick to trial divide up to the square root of the potentially prime factor, it would still be even quicker to run a primality test on it. For the size of the factors found with trial division, a few prp tests or even a full deterministic primality test wouldn't even take a millisecond. Last fiddled with by lavalamp on 2010-09-02 at 18:34 |
|
|
|
|
|
|
#5 |
|
Oct 2007
Manchester, UK
22·3·113 Posts |
You may be interested in this post made in the OBD project forum:
http://www.mersenneforum.org/showpos...&postcount=429 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checking that there are no prime factors up to x | CRGreathouse | Math | 14 | 2017-09-22 16:00 |
| Finding prime factors for 133bit number | noodles | YAFU | 2 | 2017-05-12 14:00 |
| Mersenne prime factors of very large numbers | devarajkandadai | Miscellaneous Math | 15 | 2012-05-29 13:18 |
| Prime factors of googolplex - 10. | Arkadiusz | Factoring | 6 | 2011-12-10 15:16 |
| Distribution of Mersenne prime factors mod 6 | alpertron | Math | 0 | 2006-06-23 20:07 |