Moved solutions till 35 to Python.
This commit is contained in:
7
python/e029.py
Normal file
7
python/e029.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def euler_029():
|
||||
return len(set([a**b for a in range(2, 101) for b in range(2, 101)]))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("e029.py: {}".format(euler_029()))
|
||||
assert(euler_029() == 9183)
|
||||
Reference in New Issue
Block a user