![]() |
|
|
#529 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Mods, please move this into Forum Feedback. Last fiddled with by 3.14159 on 2010-08-15 at 19:18 |
|
|
|
|
|
|
#530 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
I'm pointless to this forum.
|
|
|
|
|
|
#531 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
On finding k * n! + 1 primes:
I set the following params: When n ≤ 200: Use APR-CL to prove it prime. (≈360-380 digits, max)* When n > 200: Use 1-4 iterations of Miller-Rabin. (≈360-380+ digits)* *Depends on the k-value used. Expect the numbers to increase if you use large k, and expect the probability to drop as well.** ** Can be made up for if factorial is fairly large (Ex: 1900!) Last fiddled with by 3.14159 on 2010-08-15 at 21:56 |
|
|
|
|
|
#532 |
|
Aug 2006
3×1,993 Posts |
Seems broadly reasonable. What's the DLP bound on the chance of wrongly accepting a composite, assuming they act like random numbers?
|
|
|
|
|
|
#533 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
|
|
|
|
|
|
|
#534 |
|
Aug 2006
597910 Posts |
|
|
|
|
|
|
#535 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Also: I can't find any damn sieving implementations for specific files of k * n! + 1 (Multisieve only uses factorial primes and primorial primes, making it useless, NewPGen doesn't recognize k * n! + 1 unless I add an exponent to it. Quite frankly, k * (n!)x + 1 is too slow.)
Looking for k * 2250! + 1. (18000 random k's, odds of finding a prime are 1 in 1k, with sieving that could have been improved to as much as.. 1 in 80.) 1 in 80 amongst 6575-digit primes is pretty good. Solution: Use the trial division switch in PFGW. Last fiddled with by 3.14159 on 2010-08-15 at 23:55 |
|
|
|
|
|
#536 |
|
Aug 2006
3·1,993 Posts |
I've posted the Pari bootcamp thread, as requested.
|
|
|
|
|
|
#537 |
|
Aug 2006
10111010110112 Posts |
So write one. Loop over the primes from n+1 to as high as you like, and for each start at k = lift(Mod(-1,p)/n!) and use a step size of lift(Mod(1,p)/n!) to mark off candidates. (Check what I said in case of mistakes of finger or mind.)
|
|
|
|
|
|
#538 | ||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Quote:
Last fiddled with by 3.14159 on 2010-08-15 at 23:58 |
||
|
|
|
|
|
#539 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
![]() |
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 |