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.
importsyssys.set_int_max_str_digits(0)#Removethe4300digitlimitnx,ny=1,2foriinrange(2,int(input())+1):m=2*i//3 if i%3==0 else 1nx,ny=ny,nx+ny*mprint(sum(map(int,str(ny))))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #65: Convergents of e
You are viewing a single comment's thread. Return to all comments →
For a full explanation consider Project Euler 65