MATLAB Function Reference | Search  Help Desk |
factor | Examples See Also |
f = factor(n) f = factor(symb)
f = factor(n)
returns a row vector containing the prime factors of n
.
f = factor(123) f = 3 41
isprime
True for prime numbers
primes
Generate list of prime numbers