prime factorization solution