added a recursive method to figure out how the prime factorization of a number