Finding Lowest Common Multiples Using Prime Factorization