def factorizer(n) : return factorize2( prime_factors2( n, primes_cached() ) )
def make_factorizer( maxn ) : primes = [ p for p in build_sieve(maxn) if p ] return lambda n : factorize2( prime_factors2( n, primes ) )