view problem30.py @ 0:0e08f4decf67

Adding files from xenon
author Dominic Cleal <dominic@computerkb.co.uk>
date Mon, 01 Dec 2008 02:44:16 +0000
parents
children
line wrap: on
line source

t = 0
for i in xrange(2, 9999999):
	if i == sum([int(c)**5 for c in str(i)]):
		t += i
		print "got %d, total %d" % (i, t)