Twin primes by moriA

main=mapM putStrLn[show a++',':show b|a:b:_<-1#[2..2000],a+2==b]
a#(p:x)=[a,p]:p#[q|q<-x,mod q p>0]

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

download

return to the top page