![]() |
![]() |
#23 |
Sep 2017
5×41 Posts |
![]()
Can you add a zero to the left at any point (only to be able to add another digit later)?
|
![]() |
![]() |
![]() |
#24 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
3·7·263 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#25 |
Jan 2017
163 Posts |
![]()
No. While that is perhaps not quite 100% clear from the description, allowing it would render the question meaningless. If you start with a prime, then adding zeros to the left would keep it a prime, and if you test enough zero prefix lengths, eventually you're expected to find one such that you can add another digit to the start while keeping it a prime (1000000000000000000000000000000000000003 and so on). This would allow you to get arbitrarily high numbers even with zero exceptions.
|
![]() |
![]() |
![]() |
#26 | |
Sep 2017
5×41 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#27 |
"Ed Hall"
Dec 2009
Adirondack Mtns
3·7·263 Posts |
![]()
Sorry if my last post seemed rude. Thanks for all the assistance, everyone.
|
![]() |
![]() |
![]() |
#28 |
Sep 2017
5·41 Posts |
![]() |
![]() |
![]() |
![]() |
#29 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
22·3·7·73 Posts |
![]()
Although my code doesn't assume that the last one is prime my final solution was prime. Is anyone who has solved willing to check my solution by PM? They are quite slow at confirming results are correct.
I think I have a bug in my code that undercounts the number of exceptions by 1. If undercounting(or more likely applying the cutoff) is the only issue then I have the largest solution for 6 exceptions as well as 5. |
![]() |
![]() |
![]() |
#30 | ||
"Ed Hall"
Dec 2009
Adirondack Mtns
3×7×263 Posts |
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#31 |
"Kebbaj Reda"
May 2018
Casablanca, Morocco
2×53 Posts |
![]()
I haven't participated in a long time.
when I saw this very nice question I could not resist. I try a code quickly, and i found a number at 23. Last fiddled with by Kebbaj on 2023-03-16 at 17:44 |
![]() |
![]() |
![]() |
#32 |
"Kebbaj Reda"
May 2018
Casablanca, Morocco
11010102 Posts |
![]()
Finally, I was able to have it this morning. It was not easy! The football match: Morocco - Brazil (2-1), gave me motivation yesterday.
This morning my little laptop 8-year-old with and 8go RAM was able to give me the results of all possible cases. The last chance with the last code inspired. Ran at midnight. Best result is 28 Digits. A lot of test with a result always of 26 digits, I was even going to give up. Now I even have a 27 Digit solution. ![]() Thanks to the web master for this beautiful Challenge ![]() Last fiddled with by Kebbaj on 2023-03-26 at 10:13 |
![]() |
![]() |
![]() |
#33 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
22×3×7×73 Posts |
![]()
Was a there a better solution for this challenge than recursion exiting after too many exceptions?
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ponder This - April 2023 | tgan | Puzzles | 7 | 2023-04-20 04:07 |
Collected Ibm ponder this solutions | R. Gerbicz | Puzzles | 6 | 2020-03-30 05:58 |
March 2016 | Xyzzy | Puzzles | 21 | 2016-06-09 20:26 |
gmp 4.2 due in March | Mystwalker | GMP-ECM | 4 | 2006-02-01 12:00 |