I don't fully understand the second block of code within published base solution.
I suppose that new code lines must be inserted as follows:
Quote:
10 A = a
20 B = b
24 Z = 42
25 JMP_ZERO A 75
30 JMP_ZERO B 80
40 X = A % B
50 A = B
60 B = X
70 JMP 30
75 CHAOS 76, 77, 80
76 CHAOS 75, 77, 80
77 CHAOS 75, 76, 80
80 RETURN A
|
If a and b are non-negative integers with a >= b, it makes sense.
What about line 24?
I argue that Gadi's program also computes the Answer to Life, the Universe, and Everything.
But it won't be returned before seven and a half million years...