LCM of 1 to n by notogawa

m@main=do n<-readLn;print$foldl1 lcm[1..n];m

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page