Handbook
Glossary
factors ( n -- seq )
Vocabulary
math
.
primes
.
factors
Inputs
n
a positive integer
Outputs
seq
a
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
USING:
math.primes.pollard-rho-brent
;
IN:
math.primes.factors
:
factors
( n -- seq )
pollard-rho-brent-factors
;
flushable