in reply to e with continued fractions

if you use bigint pragma then you won't get a numeric overflow and it will continue running for much longer :)