mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-07-31, 15:18   #265
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Well, if you insist, I used 1/(ln(x)-1). That gave me about 1 in 92282. Eliminating multiples of 2 and 3 gives 1 in 30760. But it's actually closer to 1 in 30761.
How/why did you eliminate the multiple of 3?
axn is offline   Reply With Quote
Old 2010-07-31, 15:26   #266
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by axn
How/why did you eliminate the multiple of 3?
@Axn: Because I wished to increase the chances of success, and I've also already found a prime for that range: 207408 * 779068192 + 1 (40078 digits)

Last fiddled with by 3.14159 on 2010-07-31 at 15:26
3.14159 is offline   Reply With Quote
Old 2010-07-31, 15:40   #267
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
@Axn: Because I wished to increase the chances of success, and I've also already found a prime for that range: 207408 * 779068192 + 1 (40078 digits)
I meant, what was the mathematical basis for accounting for 3 in the calculation of odds?
axn is offline   Reply With Quote
Old 2010-07-31, 15:45   #268
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

69016 Posts
Default

Quote:
Originally Posted by axn
I meant, what was the mathematical basis for accounting for 3 in the calculation of odds?
Why not? Only odd integers are considered for testing, and the multiples of three are unnecessary, because they're easy to get rid of. Why should they not be accounted for?

Last fiddled with by 3.14159 on 2010-07-31 at 15:47
3.14159 is offline   Reply With Quote
Old 2010-07-31, 16:32   #269
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Why not? Only odd integers are considered for testing, and the multiples of three are unnecessary, because they're easy to get rid of. Why should they not be accounted for?
You can remove multiples of 2 because your numbers are all odd. You can't remove mutiples of 3 because some of your numbers are divisible by 3. (Sure, you can trial-divide as high as you like, but that on;y gives you the answers faster, it doesn't increase the number of primes.)
CRGreathouse is offline   Reply With Quote
Old 2010-07-31, 17:52   #270
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
You can remove multiples of 2 because your numbers are all odd. You can't remove mutiples of 3 because some of your numbers are divisible by 3. (Sure, you can trial-divide as high as you like, but that on;y gives you the answers faster, it doesn't increase the number of primes.)
Why can't I remove multiples of three? Primes are either 6n + 1 or 6n - 1. It's completely acceptable to remove multiples of 2 and 3, including odd multiples of three.

Also: Numbers where (7n -1)/6 are prime: 5, 13, 131, 149, 1699, etc..

Last fiddled with by 3.14159 on 2010-07-31 at 18:13
3.14159 is offline   Reply With Quote
Old 2010-08-01, 06:23   #271
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Why can't I remove multiples of three? Primes are either 6n + 1 or 6n - 1. It's completely acceptable to remove multiples of 2 and 3, including odd multiples of three.
That has no bearing here. No numbers of the form k * 6^n + 1 are divisible by 2 or 3 so we can remove 2 and 3 when calculating the likelihood of a random number of that form being prime. No numbers of the form k * 77906^n + 1 are divisible by 2 or 38953, but some are divisible by 3 (e.g., 5*77906^8192+1).

Quote:
Originally Posted by 3.14159 View Post
Numbers where (7n -1)/6 are prime: 5, 13, 131, 149, 1699, etc..
That's Sloane's A004063. It continues 14221, 35201, 126037, 371669, ....

Last fiddled with by CRGreathouse on 2010-08-01 at 06:25
CRGreathouse is offline   Reply With Quote
Old 2010-08-01, 12:47   #272
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default any help for elimination ?

Code:
(09:41) gp > forprime(p=5,100,for(n=1,p,if((p*n)%6==5,print1(n",");if(n==p-4 || n==p-2,print("_"p)))))
1,_5
5,_7
1,7,_11
5,11,_13
1,7,13,_17
5,11,17,_19
1,7,13,19,_23
1,7,13,19,25,_29
5,11,17,23,29,_31
5,11,17,23,29,35,_37
1,7,13,19,25,31,37,_41
5,11,17,23,29,35,41,_43
1,7,13,19,25,31,37,43,_47
1,7,13,19,25,31,37,43,49,_53
1,7,13,19,25,31,37,43,49,55,_59
5,11,17,23,29,35,41,47,53,59,_61
5,11,17,23,29,35,41,47,53,59,65,_67
1,7,13,19,25,31,37,43,49,55,61,67,_71
5,11,17,23,29,35,41,47,53,59,65,71,_73
5,11,17,23,29,35,41,47,53,59,65,71,77,_79
1,7,13,19,25,31,37,43,49,55,61,67,73,79,_83
1,7,13,19,25,31,37,43,49,55,61,67,73,79,85,_89
5,11,17,23,29,35,41,47,53,59,65,71,77,83,89,95,_97
(09:42) gp > forprime(p=5,100,for(n=1,p,if((p*n)%6==1,print1(n",");if(n==p,print("_"p)))))
5,_5
1,7,_7
5,11,_11
1,7,13,_13
5,11,17,_17
1,7,13,19,_19
5,11,17,23,_23
5,11,17,23,29,_29
1,7,13,19,25,31,_31
1,7,13,19,25,31,37,_37
5,11,17,23,29,35,41,_41
1,7,13,19,25,31,37,43,_43
5,11,17,23,29,35,41,47,_47
5,11,17,23,29,35,41,47,53,_53
5,11,17,23,29,35,41,47,53,59,_59
1,7,13,19,25,31,37,43,49,55,61,_61
1,7,13,19,25,31,37,43,49,55,61,67,_67
5,11,17,23,29,35,41,47,53,59,65,71,_71
1,7,13,19,25,31,37,43,49,55,61,67,73,_73
1,7,13,19,25,31,37,43,49,55,61,67,73,79,_79
5,11,17,23,29,35,41,47,53,59,65,71,77,83,_83
5,11,17,23,29,35,41,47,53,59,65,71,77,83,89,_89
1,7,13,19,25,31,37,43,49,55,61,67,73,79,85,91,97,_97

Last fiddled with by science_man_88 on 2010-08-01 at 12:47 Reason: forgot code tags
science_man_88 is offline   Reply With Quote
Old 2010-08-01, 18:17   #273
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

of course all this means is take (6*n+/-1)*p(a prime) as a subsequence that can't contain primes.

can we tell when 24n+7 wouldn't hit one of these ? if so maybe we can use that to help with speeding up the Mersenne prime search.
science_man_88 is offline   Reply With Quote
Old 2010-08-01, 18:40   #274
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
can we tell when 24n+7 wouldn't hit one of these ? if so maybe we can use that to help with speeding up the Mersenne prime search.
What does this mean?
CRGreathouse is offline   Reply With Quote
Old 2010-08-01, 18:49   #275
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
What does this mean?
according to every person I know all mersenne primes>7 are 24n+7

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 ?
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


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:43.


Fri Aug 6 22:43:12 UTC 2021 up 14 days, 17:12, 1 user, load averages: 4.92, 4.23, 3.77

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.