Practical Numbers by aaa

main=mapM_ print$[x|x<-[1..500],snd$foldl(\(a,b)c->(a+c,b&&a>=c))(1,True)[d|d<-[1..x],x`mod`d==0]]

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

download

return to the top page