OFFSET
1,3
LINKS
Bill McEachen, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[SelectFirst[Range[120], AllTrue[{n + #, n^2 + #^2}, PrimeQ] &], {n, 77}] (* Michael De Vlieger, Feb 22 2018 *)
PROG
(PARI) for(n=1, 100, s=1; while(isprime(s^2+n^2)*isprime(s+n)==0, s++); print1(s, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 30 2002
STATUS
approved