Factorize n into its prime factors.
n
Any positive integer
The array of prime factors
const y = SMath.factors(12); // [ 2, 2, 3 ] Copy
const y = SMath.factors(12); // [ 2, 2, 3 ]
Factorize
n
into its prime factors.