mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-08-01, 19:01   #276
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
since every (6n+/-1)*p number is a multiple of a number they can't be prime so if 24n+7 hits one it's not prime can we use this to predict which n for 24n+7 are prime and which ones are Mersenne primes ?
So you're suggesting that we can rule out numbers as Mersenne primes by trial division? Yes, that's a good method.
CRGreathouse is offline   Reply With Quote
Old 2010-08-01, 19:29   #277
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
So you're suggesting that we can rule out numbers as Mersenne primes by trial division? Yes, that's a good method.
sarcasm I'm guessing. this reminds me of something I raised about http://www.research.att.com/~njas/sequences/A002450

Last fiddled with by science_man_88 on 2010-08-01 at 20:08
science_man_88 is offline   Reply With Quote
Old 2010-08-01, 20:16   #278
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
So you're suggesting that we can rule out numbers as Mersenne primes by trial division? Yes, that's a good method.
Hey, CRG! That gives me a good idea about posting in the kook Mersenne prediction thread! !

Last fiddled with by 3.14159 on 2010-08-01 at 20:16
3.14159 is offline   Reply With Quote
Old 2010-08-01, 20:58   #279
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
sarcasm I'm guessing.
Not sarcasm, just pointing out that this method is well-known. It *is* a good method.

Quote:
Originally Posted by science_man_88 View Post
this reminds me of something I raised about http://www.research.att.com/~njas/sequences/A002450
You refer, I assume, to your thread 6*(4x+1)+1.

I think the fundamental problem here is that you're trying to use properties of the arithmetic sequence 24n + 7 to determine things about 2^p - 1, but 24n + 7 is so fat (contains ~ x/8log(x) primes up to x) that it's hard to say much at all about a sequence as thin as 2^p - 1 (which contains << log(x)/log(log(x)) primes up to x, probably only log(log (x)) primes).

We're looking for needles in haystacks, but you're suggesting looking for needles in an exponentially bigger haystack... conjecturally, a double-exponentially bigger haystack.
CRGreathouse is offline   Reply With Quote
Old 2010-08-01, 21:05   #280
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Not sarcasm, just pointing out that this method is well-known. It *is* a good method.



You refer, I assume, to your thread 6*(4x+1)+1.

I think the fundamental problem here is that you're trying to use properties of the arithmetic sequence 24n + 7 to determine things about 2^p - 1, but 24n + 7 is so fat (contains ~ x/8log(x) primes up to x) that it's hard to say much at all about a sequence as thin as 2^p - 1 (which contains << log(x)/log(log(x)) primes up to x, probably only log(log (x)) primes).

We're looking for needles in haystacks, but you're suggesting looking for needles in an exponentially bigger haystack... conjecturally, a double-exponentially bigger haystack.
okay but can we turn those n values in 24n+7 that give primes into 2^p-1 numbers is there a way to convert ?
science_man_88 is offline   Reply With Quote
Old 2010-08-01, 21:58   #281
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Talking

Quote:
Originally Posted by science_man_88 View Post
okay but can we turn those n values in 24n+7 that give primes into 2^p-1 numbers is there a way to convert ?
Sure. Just start at 7 and go upward 24 at a time, testing each member for primality. If you find a prime, add 1 and then see if the result is a power of 2. If so, output it; it's a Mersenne prime.

If you can prove primality in time O(log^4 n) then this takes time O(x log^4 x) to find the Mersenne primes up to x. If you pretest with Miller-Rabin, the time drop to O(x log^3 x).

If you use Lucas-Lehmer, it takes time O(log^3 x log log log x).
CRGreathouse is offline   Reply With Quote
Old 2010-08-02, 16:03   #282
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Sure. Just start at 7 and go upward 24 at a time, testing each member for primality. If you find a prime, add 1 and then see if the result is a power of 2. If so, output it; it's a Mersenne prime.

If you can prove primality in time O(log^4 n) then this takes time O(x log^4 x) to find the Mersenne primes up to x. If you pretest with Miller-Rabin, the time drop to O(x log^3 x).

If you use Lucas-Lehmer, it takes time O(log^3 x log log log x).
I have a faster way using the 6(4x+1)+1 sequence I talked of earlier 24(1)+7 = 31

24(5)+7 = 127
24(21)+7 = 511

can we knock out a lot of the sequence through using comparison of 24n+7 intersecting the list made by (6n-/+1)*p ?

Last fiddled with by science_man_88 on 2010-08-02 at 16:06
science_man_88 is offline   Reply With Quote
Old 2010-08-02, 18:48   #283
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
can we knock out a lot of the sequence through using comparison of 24n+7 intersecting the list made by (6n-/+1)*p ?
I don't know what you mean by that. It seems like a suggestion for some form of trial division, which would not be faster than the (very slow) method I proposed above.
CRGreathouse is offline   Reply With Quote
Old 2010-08-02, 21:14   #284
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I don't know what you mean by that. It seems like a suggestion for some form of trial division, which would not be faster than the (very slow) method I proposed above.
so starting with less and figuring a pattern to knock them out isn't going to be more efficient ?
science_man_88 is offline   Reply With Quote
Old 2010-08-02, 22:18   #285
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
so starting with less and figuring a pattern to knock them out isn't going to be more efficient ?
Your pattern is so dense that even if you could knock out one per nanosecond it would still be too slow.
CRGreathouse is offline   Reply With Quote
Old 2010-08-02, 22:20   #286
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Your pattern is so dense that even if you could knock out one per nanosecond it would still be too slow.
I'm talking knocking possible 1000's or more out with every pattern found.
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wheel Factorization a1call Factoring 11 2017-06-19 14:04
Efficient Test paulunderwood Computer Science & Computational Number Theory 5 2017-06-09 14:02
LL tests more credit-efficient than P-1? ixfd64 Software 3 2011-02-20 16:24
A Wheel storm5510 Puzzles 7 2010-06-25 10:29
Most efficient way to LL hj47 Software 11 2009-01-29 00:45

All times are UTC. The time now is 22:31.


Fri Aug 6 22:31:01 UTC 2021 up 14 days, 17 hrs, 1 user, load averages: 3.41, 3.31, 3.23

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.