![]() |
|
|
#23 |
|
Oct 2007
Manchester, UK
5·271 Posts |
I didn't see your post, so I don't know what you said. However, instead of finding the number of primes less than 10^4 and multiplying by 10^12, you could have found the number of primes less than 10^16:
http://en.wikipedia.org/wiki/Prime-counting_function pi(10^16) = 279,238,341,033,925 279 trillion versus 1.23 quadrillion. |
|
|
|
|
|
#24 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
Quote:
For p there are 1767355 choices, it means that we have to sieve out only about 1.7*10^14 numbers, instead of 10^16. Last fiddled with by R. Gerbicz on 2011-01-21 at 00:42 |
|
|
|
|
|
|
#25 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#26 |
|
Oct 2007
Manchester, UK
5×271 Posts |
Ah, I got 112 higher, but now I remember it's because the upper limit in a pari/gp for loop is inclusive and I ran an outer loop from 0 to 10000.
Code:
{
n=0;
for(a=0,9999,
forprime(p=2,9999,
if(isprime(a*10000+p),n++)
)
);
print(n);
}
Anyone have an off-the-shelf segmented sieve they feel like running these numbers through? |
|
|
|
|
|
#27 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
2×3×7×233 Posts |
|
|
|
|
|
|
#28 |
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
|
|
|
|
|
|
#29 |
|
"Mike"
Aug 2002
100000001000002 Posts |
Imagine all of the Hoff memorabilia we could buy!
|
|
|
|
|
|
#30 |
|
I quite division it
"Chris"
Feb 2005
England
31×67 Posts |
Maybe we should ask him how much credit he has left before we hit him over the head ... I mean, calculate the number.
|
|
|
|
|
|
#31 |
|
Oct 2007
Manchester, UK
5×271 Posts |
I don't know how much it would narrow down the search, but from the looks of it Ernst checked the primality of the rightmost numbers on his credit card in batches of 4, so that in all likelyhood, the rightmost 12-digit portion is NOT prime.
Of course he may have checked them in batches of 2^n from n = 2 to 4, but since they are grouped into 4 batches of 4, this seems less likely. |
|
|
|
|
|
#32 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
1) let
2) let 3) we can define the set 4) let 5)we let 6) we make new sets if is my logic even close to accurate ? |
|
|
|
|
|
#33 | |
|
May 2004
New York City
2×29×73 Posts |
Quote:
I keep missing the "fun" (disruption isn't really fun). Could someone fill me in? |
|
|
|
|
![]() |
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 |