Find LCM and HCF of integers using Prime Factorization