group-factors ( n -- seq )


Vocabulary
math.primes.factors

Inputs
na positive integer


Outputs
seqa sequence


Word description
Return a sequence of pairs representing each prime factor in the number and its corresponding power (multiplicity).

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


See also
divisors, factors, unique-factors

Definition