factor function
[y]=factor(x)
real scalar
vector of primes numbers
Given a real x, factor(x) returns in a vector y the primes numbers decomposition of x. Particular cases: factor(0) returns 0, and factor(1) returns 1.
x
factor(x)
y
factor(0)
0
factor(1)
1
x=620 y=factor(x)