![]() |
|
|
#177 |
|
Aug 2006
3·1,993 Posts |
"No base specified" = base 2, in this case, since the script has
Code:
isSPRP(n,b=2) You changed the code on my if you're trial-dividing to a million; it was only doing it to 500 before. But I'm surprised you can't see the relevance of the sequence -- it should be easy to use it to find all exceptions up to 100 billion. |
|
|
|
|
|
#178 |
|
Aug 2006
3×1,993 Posts |
That doesn't weed out pseudoprimes, it just tests to a random base. Of course if you do that the pseudoprimes you get will be unpredictable -- you can't just check a list of 2-pseudoprimes, for example.
|
|
|
|
|
|
#179 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-07-22 at 14:18 |
|
|
|
|
|
|
#180 | |
|
Aug 2006
175B16 Posts |
Quote:
For the Miller-Rabin test near n, at most 1/4. 88831 is a strong pseudoprime to 22049 out of the 88829 valid choices of base. |
|
|
|
|
|
|
#181 | ||
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Quote:
Last fiddled with by 3.14159 on 2010-07-22 at 14:28 |
||
|
|
|
|
|
#182 |
|
Aug 2006
3·1,993 Posts |
Suppose you pick odd k-bit numbers uniformly at random and do a strong pseudoprime test, discarding it and restarting the procedure if it's proven composite. Let p_k represent the probability that the procedure stops on a composite rather than a prime.
According to Damgård, Landrock, & Pomerance (1993), p_100 is at most 0.68%, p_150 is at most 0.034%, p_200 is at most 0.0017%, and p_250 is at most 0.000084%. I can't get useful estimates below 100 bits, though; Theorem 2 gives only that p_75 < 55%. |
|
|
|
|
|
#183 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-07-22 at 15:07 |
|
|
|
|
|
|
#184 |
|
Aug 2006
3×1,993 Posts |
I imagine you're thinking that it's obviously at most 25%. Damgård, Landrock, & Pomerance address this misconception on p. 178.
|
|
|
|
|
|
#185 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
1/2n? 1/1.5n? 1/1.25n? (The last one is initially ridiculous, its first term = 80% chance of failure.) Last fiddled with by 3.14159 on 2010-07-22 at 15:53 |
|
|
|
|
|
|
#186 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#187 | |
|
Nov 2003
1D2416 Posts |
Quote:
|
|
|
|
|
![]() |
| 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 |