unique-factors ( n -- seq )


Vocabulary
math.primes.factors

Inputs
na positive integer


Outputs
seqa sequence


Word description
Return an ordered list of a number's unique prime factors.

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


See also
divisors, factors, group-factors

Definition