Finds the prime factors