![]() |
|
|
#1 |
|
Oct 2007
Manchester, UK
5·271 Posts |
I was talking to someone a couple of days ago, who found that if you list the numbers 82 to 1, in base 10, in descending numerical order, it is prime.
ie: 82818079...54321 If we refer to numbers of this form as countdown-n, then this would be countdown-82 and is the only one which I know to be prime. I thought I'd try to find the next one of these primes for higher values of n. So far I have failed and I believe my code to have searched up to at least n=10000, though unfortunately I did not include any progress reporting so I cannot check it. I wrote the code in pari and it has been running for approximately 23 hours now, on one core of a 3.4 GHz i5 CPU. I didn't make any optimisations to reduce the runtime though, so I'm sure it's possible to search higher and faster. So yeah, the puzzle is basically to find the next number, n, for which countdown-n is prime (or at least a probable prime). |
|
|
|
|
|
#2 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Code:
b="";for(x=1,800,b=concat(Str(x),b);if(isprime(eval(b)),print(b))) |
|
|
|
|
|
|
#3 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
For the Smarandache consecutive numbers, we have no known primes, even though...
Quote:
Ah. There is the second one - http://oeis.org/A176024 Last fiddled with by Batalov on 2012-09-21 at 19:23 |
|
|
|
|
|
|
#4 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
133708 Posts |
The following pfgw script should do it. I have used it to test upto 4000. The tests quickly get large enough to be using prime95's ffts. PFGW also can trial factor using the -f option. Without sieving this should be pretty much the best you can get.
Code:
SCRIPT DIM n, 0 DIM max_n, 10000 DIMS str DIM tmp LABEL next_n SET n,n+1 SETS str,%d%s;n;str STRTOINT tmp,str PRP tmp IF (n<=max_n) then GOTO next_n LABEL end In other words since we have found 1 at n=82 we are probably wasting our time searching. Last fiddled with by henryzz on 2012-09-21 at 19:27 |
|
|
|
|
|
#5 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#6 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
Quote:
|
|
|
|
|
|
|
#7 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
just found an error any way because it's the multiply by 4 that needs to be 1 or 2 mod 3 so the T(n)-1 that needs to follow that.
Last fiddled with by science_man_88 on 2012-09-21 at 19:45 |
|
|
|
|
|
#8 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#10 | |
|
Aug 2006
10111010110112 Posts |
Quote:
(log(log(10^6))-log(log(37800)))/2 = 0.135... might -- the chance of finding a prime below a million but above Eric Weisstein's search limit of 37,800 is only about 13%. (0.135 primes expected in that range, chance of none 12.6%.) |
|
|
|
|
|
|
#11 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
250516 Posts |
Quote:
I agree that anyone searching under E.W.W.'s limit would be wasting their time. "An ounce of research saves a ton of ground work." |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Countdown to Zero. | jwaltos | Science & Technology | 2 | 2016-12-29 00:19 |
| The 2012 countdown | fivemack | Factoring | 2 | 2011-12-22 08:08 |
| Countdown meter | gd_barnes | No Prime Left Behind | 14 | 2010-12-07 11:55 |
| Best countdown problem ever | davieddy | Puzzles | 22 | 2009-01-26 13:46 |
| Prime Countdown | Orgasmic Troll | Lounge | 7 | 2007-09-22 01:24 |