OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The ninth prime is 23, and 23 + 9 + 9^2 = 113, which is prime, so 113 is in the sequence.
MAPLE
p:= 0: Res:= NULL:
for n from 1 to 1000 do
p:= nextprime(p);
if isprime(p+n+n^2) then Res:= Res, p+n+n^2 fi
od:
Res; # Robert Israel, Jan 08 2017
MATHEMATICA
Select[Table[Prime[n] + n + n^2, {n, 100}], PrimeQ] (* Alonso del Arte, Feb 22 2016 *)
PROG
(PARI) lista(nn) = {for (n=1, nn, if (isprime(p=prime(n)+n+n^2), print1(p, ", ")); ); } \\ Michel Marcus, Mar 13 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emre APARI, Jan 14 2016
EXTENSIONS
More terms from Michel Marcus, Mar 13 2016
STATUS
approved