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