We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This problem is trivial. No need for the use of fractions. Just feed a, b with a function returning a + b + b, a + b, and begin with 1, 1. Compare the len of str(a) and str(b). Done. Took less than a minute.
Project Euler #57: Square root convergents
You are viewing a single comment's thread. Return to all comments →
This problem is trivial. No need for the use of
fractions
. Just feeda, b
with a function returninga + b + b, a + b
, and begin with1, 1
. Compare thelen
ofstr(a)
andstr(b)
. Done. Took less than a minute.