self powers problem 48 the series 11 22 33 1010 10405071317 find the last ten digits of the series 11 22 33 10001000 returns the last 10 digits of the series 11 22 33 10001000 solution 9110846700 returns the last 10 digits of the series 1 1 2 2 3 3 1000 1000 solution 9110846700
def solution():
    
    total = 0
    for i in range(1, 1001):
        total += i**i
    return str(total)[-10:]


if __name__ == "__main__":
    print(solution())