My Question on SGARDEN was giving WA, I tried a lot,, Can anyone please help

http://www.codechef.com/viewsolution/4232113

Have a look at the following post:
http://discuss.codechef.com/questions/47443/lcm-of-n-numbers-modulo-1097

It will solve all your queries.

oh i get it …
thanks