Function Reference
— Function File: p = factor (q)
— Function File: [p, n] = factor (q)

Return prime factorization of q. That is prod (p) == q. If q == 1, returns 1.

With two output arguments, returns the unique primes p and their multiplicities. That is prod (p .^ n) == q.