Moved more problems to Python.
This commit is contained in:
12
python/e012.py
Normal file
12
python/e012.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from lib_prime import get_divisors_count
|
||||
from lib_misc import triangle_numbers
|
||||
|
||||
|
||||
def euler_012():
|
||||
for tn in triangle_numbers():
|
||||
if get_divisors_count(tn) > 500:
|
||||
return tn
|
||||
|
||||
|
||||
assert(euler_012() == 76576500)
|
||||
print("e012.py: {}".format(euler_012()))
|
||||
Reference in New Issue
Block a user