Already approved (by someone else :))
Your solution is correct but extremely slow, and it times out with large values. You need to find a mathematical way to avoid such large iterations.
Ruby 3.0 should be enabled, see this to learn how to do it
This comment is hidden because it contains spoiler information about the solution
pretty cool kata. did it the pretty inefficient iterative way but satisfied nonetheless
Named after the famous NZ golfer?
I really liked this one.
C Translation Kumited (author inactive)
Great kata. Reminded me how great mathematitian Euclides was.
Your algorithm is bad. With x and y being as big as few thousand, you may have to do around 1,000,000 iterations. Multiply this by 100 random tests and...
Most probably endless loop in your code.
Issue is kata-related, use question tag if you require help.