Finding the prime factors of a number