Use Prime Factorisation to Find LCM