euler/python/e048.py

9 lines
190 B
Python
Raw Normal View History

def euler_048():
2019-07-18 03:29:59 +02:00
return int(str(sum([i**i for i in range(1, 1001)]))[-10:])
if __name__ == "__main__":
print("e048.py: " + str(euler_048()))
2019-07-18 03:29:59 +02:00
assert(euler_048() == 9110846700)