HCF & LCM

Use prime factors to find shared factors and build the lowest common multiple.