How to get the LCM of a number ?