Page 2 of 2

Re: Problem 315

Posted: Tue Jun 04, 2013 6:32 pm
by mdean
jake223 wrote:I get 37->10 is 2+3=5 and 10->1 is 2; (2+5)*2=14
I get 17->8 is 3; 3*2=6.

Both are correct. Thanks anyway.
No, both are incorrect. For example from 17 to 8, four segments remain on, giving a savings of 8, not 6. 37 is similarly wrong. It should be 16.

Re: Problem 315

Posted: Sat Jun 15, 2013 10:38 pm
by jake223
Sorry about my earlier post. You indeed are correct. I misinterpreted "overhang" because I have never seen a seven which looked like:

Code: Select all

 _ 
| |
  |
before. Thanks for your help.

Re: Problem 315

Posted: Sun Sep 01, 2013 10:24 pm
by livne
Hello,
I am getting a wrong answer for some reason. Could someone please verify which of the following answers is correct? Thank you so much.

sam-max diff for primes between 10 and 20: 20
sam-max diff for primes between 20 and 40: 24
sam-max diff for primes between 40 and 80: 90
sam-max diff for primes between 80 and 160: 140
sam-max diff for primes between 160 and 320: 316
sam-max diff for primes between 320 and 640: 622
sam-max diff for primes between 640 and 1280: 1182

Re: Problem 315

Posted: Sun Sep 01, 2013 10:44 pm
by livne
Never mind. I had a boundary case bug. The above numbers were wrong; I will let others post the correct numbers for those ranges if they feel it is necessary to do so without compromising the problem.

Re: Problem 315

Posted: Thu Nov 06, 2014 8:28 pm
by nicolas.patrois
There is a small typo: "tansition".

Re: Problem 315

Posted: Thu Nov 06, 2014 9:02 pm
by hk
Thanks, fixed.

Re: Problem 315

Posted: Fri May 06, 2016 2:54 am
by jdorje
This is easily the most unclear problem I've solved to date. Digital root isn't defined (I did not know this term and thus did not realize that was the key phrase), and therefore it's not clear that for each number fed in the sequence of roots is displayed, or that the clock is reset in between each sequence. This is probably why almost nobody has solved this problem despite it being among the easiest.

Re: Problem 315

Posted: Fri May 06, 2016 8:54 am
by hk
jdorje wrote:This is easily the most unclear problem I've solved to date. Digital root isn't defined (I did not know this term and thus did not realize that was the key phrase), and therefore it's not clear that for each number fed in the sequence of roots is displayed, or that the clock is reset in between each sequence.
Does it occur to you that "digital root" can be easily found on the web?
This is probably why almost nobody has solved this problem despite it being among the easiest.
The problem has been solved by 1941 people.
That's quite a lot more than almost nobody.

Re: Problem 315

Posted: Wed May 06, 2020 10:58 pm
by hamsterofdeath
i am getting correct numbers for the example in the problem description and for 1999993, but my end result is wrong.
i double checked my "which bar"-settings and they are ok.
can someone give me some example numbers so i can find my bug?

i also tried a few numbers and confirmed the result manually. everything seems to be correct.

Re: Problem 315

Posted: Fri May 15, 2020 3:28 pm
by sjhillier
hamsterofdeath wrote: Wed May 06, 2020 10:58 pm i also tried a few numbers and confirmed the result manually. everything seems to be correct.
We prefer not to give out more test cases. Given that it sounds as if your individual calculations are correct, perhaps it's something different - eg the prime number algorithm.