happy number by tanakh

main=mapM print$filter h[1..2000]
h n=n<2||n>4&&h(sum[read[x]^2|x<-show n])

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

download

return to the top page