Moved more problems to Python.

This commit is contained in:
2019-07-14 23:58:22 -04:00
parent 86e68eeee2
commit 0ab214633e
14 changed files with 476 additions and 0 deletions

12
python/e012.py Normal file
View 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()))