![]() |
Composites that pass Mathematica's pseudoprime test
[url]http://mathworld.wolfram.com/LucasPseudoprime.html[/url]
"Mathematica versions 2.2 and later have implemented the multiple Rabin-Miller test in bases 2 and 3 combined with a Lucas pseudoprime test as the primality test used by the function PrimeQ[n]." This is probably old news for many here but: Are there any known composites that pass these three tests? I was wondering if anyone has mounted a search (and perhaps failed through some bound). Thanks |
[QUOTE=grandpascorpion;293611][url]http://mathworld.wolfram.com/LucasPseudoprime.html[/url]
"Mathematica versions 2.2 and later have implemented the multiple Rabin-Miller test in bases 2 and 3 combined with a Lucas pseudoprime test as the primality test used by the function PrimeQ[n]." This is probably old news for many here but: Are there any known composites that pass these three tests? I was wondering if anyone has mounted a search (and perhaps failed through some bound). Thanks[/QUOTE] (1) The quote is misworded. These are not pseudo-prime tests, they are probable prime tests. A pseudoprime is a [b]compositie[/b] integer that happens to pass a PRP test. (2) There are no known composites that pass both a MR and Lucas test (with D = 5). (3) People (including a joint search by me and Preda Mihailescu about 12 years ago) have mounted searches. There is no "bound" on such searches in the sense you mean. Instead, one constructs a special set of primes such that some *subset* when multiplied together will yield a desired composite. It is a (vary large!) combinatorial problem. |
Depends on the exact implementation, but I guess from the description that it includes the BPSW test. For this test there are no known counter-examples. See [URL]http://www.trnicely.net/misc/bpsw.html[/URL] and [URL]http://gilchrist.ca/jeff/factoring/pseudoprimes.html[/URL]
|
True, Dr.. It's odd that they use the terms interchangeably at MathWorld. They do the same for the Miller-Rabin test.
Would you have anything on-line regarding that search? Gammatester: Different but interesting. |
[QUOTE=R.D. Silverman;293616](2) There are no known composites that pass both a MR and Lucas test
(with D = 5). (3) People (including a joint search by me and Preda Mihailescu about 12 years ago) have mounted searches. There is no "bound" on such searches in the sense you mean. Instead, one constructs a special set of primes such that some *subset* when multiplied together will yield a desired composite. It is a (vary large!) combinatorial problem.[/QUOTE] Exactly. Jon Grantham & Red Alford have such a list ([url=https://oeis.org/A018188]A018188[/url], incidentally); perhaps there are others. |
[QUOTE=grandpascorpion;293627]True, Dr.. It's odd that they use the terms interchangeably at MathWorld. They do the same for the Miller-Rabin test.
[/QUOTE] Some time ago, "pseudoprime" was commonly used for any integer that passes a probable prime test, necessarily including all the primes. The meaning then changed to exclude actual primes. The old meaning of pseudoprime can still be found in some places, for example the Pari/GP probable prime test is called ispseudoprime(). |
[QUOTE=akruppa;293669]Some time ago, "pseudoprime" ... probable prime test is called ispseudoprime().[/QUOTE]Well said , Alex .
A lot of confusion arises because people keep wanting to use the word "prime" to describe these tests of compositeness . Primo provides a test of primality . Full TD ( through sqrt ) is a test of primality . 2-Fermat , ECM , etc. , etc. , provide compositeness tests . Another part of the probem is that it seems to be very difficult to characterize the nature of the probabilty involved in the "probable" part of "probable prime" . "strong" also interacts . [QUOTE=R.D. Silverman;293616](2) There are no known composites that pass both a MR and Lucas test (with D = 5).[/QUOTE]Is there a deterministic MR test ? |
[QUOTE=akruppa;293669]Some time ago, "pseudoprime" was commonly used for any integer that passes a probable prime test, necessarily including all the primes.
[/QUOTE] "Some time ago" was 30+ years............. |
[QUOTE=Walter Nissen;293726]Well said , Alex .
A lot of confusion arises because people keep wanting to use the word "prime" to describe these tests of compositeness . [/QUOTE] No, the confusion occurs because people use terminology without actually having [b]read[/b] about the algorithms. [QUOTE] Is there a deterministic MR test ?[/QUOTE] ??? Are you asking if deterministic tests exist ???? Or do you really mean "MR test"? If so, the answer is no. If a test is deterministic, then it isn't MR. |
[QUOTE=R.D. Silverman;293729]
??? Are you asking if deterministic tests exist ???? Or do you really mean "MR test"? If so, the answer is no. If a test is deterministic, then it isn't MR.[/QUOTE] True in practice, but to be technically correct, there are deterministic variants. (These typically require the GRH, but there are "brute-forced" bounds known. [url]http://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test#Deterministic_variants_of_the_test[/url] [quote=Wikipedia]The Miller–Rabin algorithm can be made deterministic by trying all possible a below a certain limit.[/quote] [quote=Wikipedia]When the number n to be tested is small, trying all a < 2(ln n)2 is not necessary, as much smaller sets of potential witnesses are known to suffice. For example, Pomerance, Selfridge and Wagstaff[6] and Jaeschke[7] have verified that if n < 1,373,653, it is enough to test a = 2 and 3; if n < 9,080,191, it is enough to test a = 31 and 73; if n < 4,759,123,141, it is enough to test a = 2, 7, and 61; if n < 2,152,302,898,747, it is enough to test a = 2, 3, 5, 7, and 11; if n < 3,474,749,660,383, it is enough to test a = 2, 3, 5, 7, 11, and 13; if n < 341,550,071,728,321, it is enough to test a = 2, 3, 5, 7, 11, 13, and 17. Other criteria of this sort exist[8][9][10][11] and these results give very fast deterministic primality tests for numbers in the appropriate range, without any assumptions.[/quote] |
[QUOTE=Dubslow;293730]True in practice, but to be technically correct, there are deterministic variants. (These typically require the GRH, but there are "brute-forced" bounds known.
[url]http://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test#Deterministic_variants_of_the_test[/url] [quote=Wikipedia]The Miller–Rabin algorithm can be made deterministic by trying all possible a below a certain limit.[/quote][/QUOTE] The above Wikiarticle omits a crucial aspect of such "deterministic up to a limit" PRP tests; namely for a given set of bases, whether the limit can be determined (or at least bounded below) in [i]a priori[/i] fashion. A test which cannot provide such a a priori bound is only "deterministic" in an extremely weak [i]post hoc[/i] fashion. An aside regarding "proper terminology": When I gave my little talk on the determination of compositeness of F[sub]24[/sub] at the WCNTC some years back, John Brillhart at several points loudly objected to the effect that the Pe'pin test "was not a test." That was ... strange. |
| All times are UTC. The time now is 14:40. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.