
Last chance! 50% off unlimited learning
Sale ends in
n
.Factorize(n)
list
of the same length as n
,
each element a 2-column matrix with column "p"
the prime
factors and column~"m"
their respective exponents (or
multiplities), i.e., for a prime number n
, the resulting matrix
is cbind(p = n, m = 1)
.Primes
, currently in a cheap way, sub-optimal
for large composite $n$.Primes
.
For factorization of moderately or really large numbers, see the factorize()
.Factorize(47)
Factorize(seq(101, 120, by=2))
Run the code above in your browser using DataLab