Twin primes by 51b

-module(t).
-export([m/0]).
m()->L=lists:seq(3,2000,2),[io:format("~p,~p
",[X,X+2])||X<-L,[Y||Y<-L,X>Y,X*(X+2)rem Y<1]==[]].

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

download

return to the top page