![]() |
|
|
#309 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
for(p=2,30,for(n=2,20,if((6*n*p+p)%24 == 7 || (6*n*p-p)%24 == 7,print(floor((6*n*p-p)/24)","p)))) I had 14 in there lol
Code:
(10:11) gp > forprime(p=1,30,for(n=1,20,if((6*n*p+p)%24==7 || (6*n*p-p)%24==7,print(floor((6*n*p-p)/24)","p))) 2,5 7,5 12,5 17,5 22,5 6,7 13,7 20,7 27,7 34,7 2,11 13,11 24,11 35,11 46,11 9,13 22,13 35,13 48,13 61,13 16,17 33,17 50,17 67,17 84,17 8,19 27,19 46,19 65,19 84,19 16,23 39,23 62,23 85,23 108,23 13,29 42,29 71,29 100,29 129,29 23 knocks 85 out. so we can knock this off the list the hard part with this new code is determining where it starts it's all pn+c where c is unknown. Of course this is a slow form I'd use the equations if I knew them knock out all in the sequence of that form. which is my other problem I can't tell which ones would match up if i find a pattern in that maybe I can delete them faster. Last fiddled with by science_man_88 on 2010-08-03 at 13:24 |
|
|
|
|
|
#310 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
*facepalm* I am not asking for a primality proof via sieving alone. No one's ever made any such propositions. Stop building strawmen. The point of the sieve is to reduce the amount of candidates, so time is saved and less tests have to be done. Last fiddled with by 3.14159 on 2010-08-03 at 13:28 |
|
|
|
|
|
|
#311 |
|
Aug 2006
3·1,993 Posts |
Not what I said; yours is the strawman. Using that many candidates makes the method infeasible, whether you remove members by sieving, (pseudo)primality tests, or oracle. I've already posted full details on this.
|
|
|
|
|
|
#312 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
|
|
|
|
|
|
|
#313 |
|
Aug 2006
3·1,993 Posts |
If he wanted to test every integer in the range, it would take time O(n) with an oracle. But even if he could skip over the composites costlessly, and test only the primes with an oracle for Mersenne-ness, it would still take time O(n/log n). This is entirely infeasible, since the competing algorithm is easily O(log^3 n) -- that is, exponentially better.
|
|
|
|
|
|
#314 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#315 |
|
Aug 2006
597910 Posts |
Find what? (Really, I'm not a mind-reader... give me a break.) The primes in the range?
Last fiddled with by CRGreathouse on 2010-08-03 at 15:53 |
|
|
|
|
|
#316 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
I've given enough information so that ability isn't needed. depends on the range you want to knock out them to, also this depends on if I get help or not.
Last fiddled with by science_man_88 on 2010-08-03 at 15:58 |
|
|
|
|
|
#317 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#318 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
2) all possible n needed to find all odd Mersenne numbers (including all Mersenne primes above 7 for 24n+7) should be in the sequence I stated if I understand a method to figure out a(n+1) from a(n). 3) if we find out what c is in p*n+c that fits the pattern in the sequences above all we need is to figure out when p*n+c and the sequence given are equal if they are we can eliminate that value from our list given the numbers get large we might have to find sequences to follow to knock them out instead of the numbers themselves. |
|
|
|
|
|
|
#319 | ||||
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
Every Mersenne number is of the form 6n + 1, and so is every number of the form 24n + 7. If he's looking for prime Mersenne numbers, he should just test the prime Mersenne numbers to see whether or not subtracting seven yields divisibility by 24 and get his results from there. It'll only take a few minutes. Quote:
Quote:
Quote:
Last fiddled with by 3.14159 on 2010-08-03 at 16:50 |
||||
|
|
|
![]() |
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 |