Finding Lcm Using Prime Factorization