Created
February 16, 2011 02:44
-
-
Save clementi/828765 to your computer and use it in GitHub Desktop.
Project Euler Problem #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
products = set() | |
for (a, b) in itertools.product(range(2, 101), range(2, 101)): | |
products.add(a ** b) | |
print len(products) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment