mathematical and programmatic musings with a few cats
© . All rights reserved.
This problem was incredibly easy. It took the script just 0.13 sec to complete the task. And it took me maybe 2 min to write it.
sum = 0 for x in range(1, 1001): sum = sum + (x**x) print x print sum