FUNCTION REFERENCE
factor
Prime factorization.
Prime factorization.
Syntax
f = factor(n)f is the row of prime factors of the scalar n, smallest first, repeated by
multiplicity.
factor(1) is 1 and factor(0) is 0. Only one output is supported.
Example
factor(60) % 2 2 3 5Differences from MATLAB: n is limited to 2^53; scalar double input only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.