multiples by test

main=mapM print$([1..1000]%cycle[3,5,7])
(a:b)%(c:d)|mod a c==0=a:(b%d)|1>0=(b%(c:d))
[]%a=[]

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

download

return to the top page