euler/python/e003.py

10 lines
169 B
Python
Raw Normal View History

from lib_prime import prime_factors
def euler_003():
return prime_factors(600851475143)[-1]
assert(euler_003() == 6857)
print("e003.py: {}".format(euler_003()))