LCM of 1 to n by pumpkin

main=mapM(\n->print$foldl1 lcm[1..read n]).lines=<<getContents

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

download

return to the top page