factors ( n -- seq )


Vocabulary
math.primes.factors

Inputs
na positive integer


Outputs
seqa sequence


Word description
Return an ordered list of a number's prime factors, possibly repeated, using the Pollard Rho Brent algorithm in the math.primes.pollard-rho-brent vocabulary.

Examples
USING: math.primes.factors prettyprint ; 300 factors .
{ 2 2 3 5 5 }


See also
divisors, group-factors, unique-factors

Definition