Moved more problems to Python.
This commit is contained in:
9
python/e014.py
Normal file
9
python/e014.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from lib_misc import collatz_sequence_length
|
||||
|
||||
|
||||
def euler_014():
|
||||
return max([(collatz_sequence_length(n), n) for n in range(1, 1000000)])[1]
|
||||
|
||||
|
||||
assert(euler_014() == 837799)
|
||||
print("e014.py: {}".format(euler_014()))
|
||||
Reference in New Issue
Block a user