![]() |
|
|
#287 |
|
May 2010
Prime hunting commission.
168010 Posts |
Random pseudoprime: 759932492170846988701 is pseudoprime to bases 2, 3, 5, 7, 11, and 13. By the way: Is there a world record for "largest composite pseudoprime"?
Also: I forgot how to write a Fermat pseudoprime generator. Last fiddled with by 3.14159 on 2010-08-12 at 00:09 |
|
|
|
|
|
#288 | |
|
Aug 2006
3·1,993 Posts |
Quote:
Depends on what you mean by "generator". Are you looking for a program that does the Fermat test? A program that generates all Fermat pseudoprimes in a range? A program that generates a Fermat pseudoprime at a given size? Something else? |
|
|
|
|
|
|
#289 | ||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Quote:
Last fiddled with by 3.14159 on 2010-08-12 at 11:39 |
||
|
|
|
|
|
#290 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
for all remaining n that create primes print(2*n+3) these are Mersenne prime exponents get this CRG ? Last fiddled with by science_man_88 on 2010-08-12 at 12:57 |
|
|
|
|
|
#291 |
|
May 2010
Prime hunting commission.
110100100002 Posts |
An interesting application error:
Whenever I input 25326001, it returns that it is a 7-SPRP, when it is in fact reported "composite" using base 7. I verified that it was an error on the app. Now I see that this is an unreliable app, as it returns results that are clearly wrong. |
|
|
|
|
|
#292 |
|
Aug 2006
597910 Posts |
|
|
|
|
|
|
#293 | |
|
Aug 2006
3×1,993 Posts |
Quote:
Code:
>isSPRP(25326001,7) %1 = 0 |
|
|
|
|
|
|
#294 | |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
Quote:
oh and there shouldn't be 2 n equations lol. Last fiddled with by science_man_88 on 2010-08-12 at 13:19 |
|
|
|
|
|
|
#295 | |
|
Aug 2006
175B16 Posts |
Quote:
The lines themselves seem to be statements of the division algorithm. The first says that if 24m+1 is of the form p(6n+1), then p(6n+1)/24 = px + c, that is, p(6n+1) leaves a remainder of c when divided by p. But wait, it doesn't matter which of the first two lines I choose -- px + c is always m. So the first two lines say that 24m+7 is composite (assuming that n > 0 and p > 1) and the third line says that m is (4n-1)/3. OK, so m = (4n-1)/3 means 3m+1 = 4n, so the third line is saying that The original composite is then 24m+7 = 24(4k + 1) + 7 = 96k + 31 and the Mersenne non-exponent is 2n+3 = 2(3k+1)+1=6k+3. And indeed yes, this is correct: if k is a positive integer, then 6k+3 is not a Mersenne exponent. But this won't remove all bad exponents, of course. |
|
|
|
|
|
|
#296 |
|
Aug 2006
175B16 Posts |
|
|
|
|
|
|
#297 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
for all remaining n that create primes print(2*n+3) these are Mersenne prime exponents. Last fiddled with by science_man_88 on 2010-08-12 at 13:43 |
|
|
|
![]() |
| Thread Tools | |
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 |