Practical Numbers by tanakh

main=mapM print[i|i<-l,and$f[j|j<-l,i`mod`j<1]]
l=[1..500]
f a=zipWith(<)a$scanl(+)2$a

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

download

return to the top page