OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Table[n^2 + Prime[n] + 1, {n, 500}], PrimeQ] (* Vincenzo Librandi, Jun 26 2018 *)
PROG
(PARI) j=[]; for(n=1, 700, x=n^2+prime(n)+1; if(isprime(x), j=concat(j, x))); j
(PARI) { n=0; for (m=1, 10^9, if (isprime(a=m^2 + prime(m) + 1), write("b063461.txt", n++, " ", a); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 22 2009
(Magma) [a: n in [1..500] | IsPrime(a) where a is (n^2+NthPrime(n)+1)]; // Vincenzo Librandi, Jun 26 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 26 2001
STATUS
approved