finding the gcf using prime factorization