LCM by Prime Factorization - Search