You are viewing a single comment's thread. Return to all comments →
:-)
n=int(input()) print(sum([x for x in range(100, 1000000) if x==sum(int(z)**n for z in str(x))]))
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #30: Digit Nth powers
You are viewing a single comment's thread. Return to all comments →
:-)