r=range def p(n):return sum(n%i==0 for i in r(2,n))==0 for i in r(3,2000): if p(i)&p(i+2):print`i`+','+`i+2`