problem 5 solved. yes i know about lcm