view problem48.py @ 2:1ca695e32f66

Solutions from tungsten
author Dominic Cleal <dominic@computerkb.co.uk>
date Mon, 01 Dec 2008 10:57:01 +0000
parents
children
line wrap: on
line source

s = sum([a**a for a in range(1,1001)])
print s
print str(s)[-10:]