factors(n)

Returns an array with all factors of integer n.


See also gcd lcm primes 


Example


factors( 2002 )

1  2  7  11  13