OFFSET
1,1
COMMENTS
Twin primes with Hamming distance 1 between them. - Vladimir Shevelev, Jan 29 2012
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 17 = 4*4 + 1, a(4) = 19 = 4*4 + 3.
MAPLE
i:=1:for k from 1 to 600 do if isprime(4*k+1) and isprime(4*k+3) then a[i]:=4*k+1:a[i+1]:=4*k+3: i:=i+2 fi od: seq(a[n], n=1..i-1);
MATHEMATICA
Flatten[Select[Table[4k+{1, 3}, {k, 400}], And@@PrimeQ[#] &]] (* Jayanta Basu, May 26 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Miklos Kristof, Sep 21 2006
STATUS
approved