LCM & HCF by prime factorization