Finds the prime factors of a number