4 de septiembre de 2012

Project Euler 29


#!/usr/bin/env python
r=xrange(2,101)
x=set([a**b for a in r for b in r])
print len(x)
#this could've been a one liner
#but i wrote it like this for
#clarity and because of the format
#of the blog