![]() |
|
|
#210 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
|
|
|
|
|
|
|
#211 | |
|
Aug 2006
3×1,993 Posts |
Quote:
You asked about getting lists of small primes. bsquared asked "How small"? You said 10-30 digits. I explained that this would be too many primes, even if I took the square root interpretation. Now you say that you're not using trial division for numbers of that size. Great... but then we're right back to bsquared's question: How big of a list do you want? |
|
|
|
|
|
|
#212 |
|
Jun 2003
5,087 Posts |
|
|
|
|
|
|
#213 | |
|
Jun 2003
5,087 Posts |
Quote:
Code:
p=6.34e12: 1 in 15 p=4.52e13: 1 in 16 p=3.23e14: 1 in 17 p=2.30e15: 1 in 18 p=1.64e16: 1 in 19 p=1.17e17: 1 in 20 |
|
|
|
|
|
|
#214 | |||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Okay: To clear things up: 1. 10 digits would only require division up to at most 316227. 2. Trial division - Up to about 18 digits. 3. Miller-Rabin - Up to about 30 digits. Everything is cleared. Quote:
Quote:
Last fiddled with by 3.14159 on 2010-08-03 at 00:52 |
|||
|
|
|
|
|
#215 | |
|
Aug 2006
3×1,993 Posts |
Quote:
I just use Pari for that size; its algorithm is plenty good enough for me. Code:
default(primelimit,10^9) You can also try Bernstein's primegen if you like. |
|
|
|
|
|
|
#216 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
think he's asking for 10^10 to 10^30 myself but I could be wrong. though depending base it could be up to infinity base 2 about 10^9 base 10 10^10-9.99999999999999999999999999999*10^30 base 16 16^10-F.FFFFFFFFFFFFFFFFFFFFFFFFFFFFF16^30 ? Last fiddled with by science_man_88 on 2010-08-03 at 13:41 |
|
|
|
|
|
|
#217 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-03 at 13:42 |
|
|
|
|
|
|
#218 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
I was talking of the range you wanted to prove I wasn't aware about what he was talking about obviously. I know about the sqrt part.
|
|
|
|
|
|
#219 |
|
May 2010
Prime hunting commission.
69016 Posts |
I tested the (ispseudoprime) function to the comparison against my methods, coded.
The results are: (For a 5628-digit PRP): ispseudoprime: 36.083 seconds isSPRP: 12.355 seconds Nearly three times as fast. Last fiddled with by 3.14159 on 2010-08-03 at 13:55 |
|
|
|
|
|
#220 | ||
|
Aug 2006
3×1,993 Posts |
Quote:
Of course as I've said, if you're looking to get that kind of certainty you'd be better off with one Miller-Rabin and a few applications of some modern test, e.g. Damgård-Frandsen; for the time it would take you to do 10 M-Rs (1 M- R + 3 D-F), you can get higher confidence than you'd get for 30 M-Rs: 1/142657607172096 vs. only 1/1073741824. They're better in the average case, too. Quote:
Code:
ispseudoprime(n, 1) |
||
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime posting thread, part 2. (With a catch.) | 3.14159 | Miscellaneous Math | 55 | 2010-11-19 23:55 |
| Tiny range request .... 555.1M | petrw1 | LMH > 100M | 1 | 2010-07-13 15:35 |
| Other primes thread | nuggetprime | No Prime Left Behind | 32 | 2009-10-21 21:48 |
| Error: tiny factoring failed | 10metreh | Msieve | 26 | 2009-03-08 23:28 |
| Tiny error on nfsnet pages. | antiroach | NFSNET Discussion | 1 | 2003-07-08 00:27 |