OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
with(numtheory):for n from 1 to 500 do: x1:=n^2+1:x2:=(n+2)^2 + 1:if type(x1, prime)=true and type(x2, prime)=true then printf(`%d, `, (n+1)^2+1):else fi:od:
MATHEMATICA
Select[Partition[Range[3000]^2+1, 3, 1], AllTrue[{#[[1]], #[[3]]}, PrimeQ]&][[All, 2]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 03 2019 *)
PROG
(PARI) forstep(n=3, 1e3, 2, if(isprime(n^2+2*n+2) && isprime(n^2-2*n+2), print1(n^2+1", "))) \\ Charles R Greathouse IV, Oct 09 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Oct 07 2012
STATUS
approved