![]() |
|
|
#540 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
for(n=1,10,for(k=1,20,if(isprime(k*n!+1),print(k","n)))) |
|
|
|
|
|
#541 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Also: How is sieving not wide-range trial-division? Last fiddled with by 3.14159 on 2010-08-16 at 00:02 |
|
|
|
|
|
|
#542 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#543 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
1. Establish the first number larger than p such that n%p = 0. (Ex: 311, 622%311 = 0.) 2. Count by p and cross off. That it? Last fiddled with by 3.14159 on 2010-08-16 at 00:05 |
|
|
|
|
|
|
#544 | |
|
Aug 2006
3×1,993 Posts |
Quote:
I wrote a quick siever today for a problem I'm working on, and it managed to remove about 200,000 candidates, saving what would have otherwise been a few months of work.
|
|
|
|
|
|
|
#545 |
|
Aug 2006
597910 Posts |
Yes, that's the basic idea. #2 has to be modified when you're working with numbers that aren't consecutive, like k * n! + 1 or k * 2^n + 1. I gave the relevant calculations (hopefully correct!) above.
|
|
|
|
|
|
#546 | |||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Quote:
Quote:
This, to me, is a glaring red flag. Last fiddled with by 3.14159 on 2010-08-16 at 00:14 |
|||
|
|
|
|
|
#547 |
|
Aug 2006
10111010110112 Posts |
|
|
|
|
|
|
#548 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#549 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
P.S: 816280180 * 2250! + 1 is prime. (≈6575 digits) Last fiddled with by 3.14159 on 2010-08-16 at 00:24 |
|
|
|
|
|
|
#550 |
|
Aug 2006
3·1,993 Posts |
No. I wrote the key calculations for the script, in the scripting language. I did not write the script that would contain those calculations. (If it's not worth your time to do it, why would it be worth mine?)
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |