Self powers
Problem 48
The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
def run():
# str(sum([i**i for i in range(1,1001)]))[-10:]
total = 0
x = 1
while x < 1001:
total += x**x
x += 1
return str(total)[-10:]