Entry emailed.
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 4 GB
Bus Speed: 800 MHz
I'd love to have a go at this over the holiday - would Ruby be ok for submitting in?
Stage one in 803.904 seconds.
Not sure if it's my computer or what but that seems pretty slow.
Stage one in 803.904 seconds.
Not sure if it's my computer or what but that seems pretty slow.
Stage one in 803.904 seconds.
Not sure if it's my computer or what but that seems pretty slow.
What language?
I'll have a quick look.Have you read the Wiki page about the Collatz conjecture?
Python
I'll have a quick look.
Also for step 5, I don't understand at all. Finding the 13370th Prime number?
What about step 4, do we just forget about that number? Or am I missing something?
You need to work out what the 13370th prime number is.
Look at the Wiki page and understand the algorithm, and the optimisations that can be carried out.
Looks like I went wrong somewhere down the line.
I gave up on understanding those optimisations, to me there seems to be a lot of maths with no clear 'do this' approach .
I'm not sure whether tntcoder would want me to point out what, but part of the answer is right in both runs.
You should be able to work out for certain which stages are producing the correct answers and which are not:Looks like I went wrong somewhere down the line.
<screenshot>
You can check your solutions to each stage here: http://www.jcsecurity.co.uk/ocuk.html
I've managed to confuse myself. I think stage 8 should be easy, but I've come up with two totally different methods (one mathematical, one brute force) for it which come up with the same wrong answer.
Incidentally, the same right answers when I check them for other (although far smaller) values.
I should probably go to bed.