Returns an array of the prime factors of an integer sorted from smallest to largest.
factor(value)
value
An integer.
An array of the prime factors of the value.
factor(65535)
[3, 5, 17, 257]