Help with MXMLCM!

Unable to find errors in my code, tried a lot. Please help!!!
Link to my solution is CodeChef: Practical coding for everyone
Thanks in advance.

lcm overflows