You are viewing a single comment's thread. Return to all comments →
Python 3 100% 1-liner
print(int(str(sum(pow(i, i, 10**10) for i in range(1, int(input())+1)))[-10:]))
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #48: Self powers
You are viewing a single comment's thread. Return to all comments →
Python 3 100% 1-liner