MATLAB Function Reference    
factor

Prime factors

Syntax

Description

f = factor(n) returns a row vector containing the prime factors of n.

Examples

See Also

isprime, primes


  ezsurfc factorial