![]() |
|
|
#34 |
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
Alright, alright ... I undeleted the 2 posts in question. Like I said, it was really my fault for not respecting the "ignore user" I placed on sm88 last year. My ignorance of his repeated putting-on-display of his own ignorance was bliss, but then curiosity demised the metaphorical feline, or something.
|
|
|
|
|
|
#35 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
I've got a code working to check the luhn test. now it's checking through the 16 digits primes that have the last 8 digits a prime that have the last 4 digits a prime.
|
|
|
|
|
|
#36 |
|
Aug 2006
10111010110112 Posts |
Why don't you just check 1000000000000000 through 1000001000000000 and tell us how long that takes? That way you'll have a good idea of how long the whole thing will take (about a million times longer).
|
|
|
|
|
|
#37 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
Code:
(17:09)>a=0;forstep(x=1000000000000001,1000000000100001,2,if(isprime(x) && luhn(x),a=a+1));print(a) 82 (17:11)>a=0;forstep(x=1000000000000001,1000000000100001,2,if(isprime(x) && isprime(x%10^8) &&luhn(x),a=a+1));print(a) 84 Last fiddled with by science_man_88 on 2011-01-21 at 21:20 |
|
|
|
|
|
|
#38 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
(17:19)>b=0;forstep(x=1000000000000001,1000000000100001,2,if(isprime(x) && isprime(x%10^8) && isprime(x%10^4) && luhn(x),b=b+1));print(b) 22 (17:20)>## *** last result computed in 5,000 ms. (17:21)>b=0;forstep(x=1000000000000001,1000000001000001,2,if(isprime(x) && isprime(x%10^8) && isprime(x%10^4) && luhn(x),b=b+1));print(b) 126 (17:22)>## *** last result computed in 51,875 ms. (17:22)>b=0;forstep(x=1000000000000001,1000000010000001,2,if(isprime(x) && isprime(x%10^8) && isprime(x%10^4) && luhn(x),b=b+1));print(b) 1019 (17:32)>## *** last result computed in 8mn, 48,719 ms. |
|
|
|
|
|
#39 | |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Quote:
|
|
|
|
|
|
|
#40 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#41 | |
|
Aug 2006
175B16 Posts |
Quote:
|
|
|
|
|
|
|
#42 |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Ah, the return of blissful stillness:
|
|
|
|
|
|
#43 | |
|
Aug 2006
175B16 Posts |
Quote:
|
|
|
|
|
|
|
#44 | |
|
Nov 2003
22×5×373 Posts |
Quote:
They are however, 16 digit digit STRINGS. Ernst did say "number", not "string". The most significant digit of a number is non-zero. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| AMD Announces Industry's First "Supercomputing" Server Graphics Card | ET_ | GPU Computing | 23 | 2013-11-18 17:49 |
| Speeding up double checking when first test returns "prime" | Unregistered | PrimeNet | 16 | 2006-02-28 02:00 |
| Oh noes! The "42nd Mersenne prime" isn't prime! | ixfd64 | Lounge | 7 | 2005-04-03 19:27 |
| Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |