Adding get_prime_factors method for Problem 5