SGARDEN question showing WA

please tell me what’s wrong with my code showing wrong answer. it will be great help.http://www.codechef.com/viewsolution/4308976

On line 32, the multiplication operation will overflow…I suggest you use prime factorization to calculate the gcd/lcm of the numbers.

Hope this helps.

//