Пример #1
0
def factorizer(n) :
    return factorize2( prime_factors2( n, primes_cached() ) )
Пример #2
0
def make_factorizer( maxn ) :
    primes = [ p for p in build_sieve(maxn) if p ]
    return lambda n : factorize2( prime_factors2( n, primes ) )