OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
34 is in the sequence because 34 + 33^2 = 1123 and 34 + 35^2 = 1259 are both prime.
MAPLE
L:=[]; for k from 1 to 1000 do if isprime(k+(k-1)^2) and isprime(k+(k+1)^2) then L:=[op(L), k] fi od;
MATHEMATICA
Select[Range@1000, PrimeQ[#^2 - # + 1] && PrimeQ[#^2 + 3 # + 1] &] (* Ivan Neretin, Feb 08 2017 *)
PROG
(PARI) isok(n) = isprime(n+(n-1)^2) && isprime(n+(n+1)^2); \\ Michel Marcus, Feb 08 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Walter Kehowski, Jul 04 2005
STATUS
approved