def factor_counts(): for n in itertools.count(): yield len(set(prime_factorization(n)))
from utility import prime_factorization print(max(prime_factorization(600851475143)))