Handbook
Glossary
pollard-rho-brent-factors ( n! -- factors )
Vocabulary
math
.
primes
.
pollard-rho-brent
Inputs
n!
an
object
Outputs
factors
an
object
Definition
USING:
arrays
kernel
make
math
math.primes
sorting
;
IN:
math.primes.pollard-rho-brent
:
pollard-rho-brent-factors
( n! -- factors )
dup
1
<=
[
drop
{
}
]
[
dup
prime?
[
1array
]
[
[
(pollard-rho-brent-factors)
]
{
}
make
]
if
]
if
sort
;