OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n=1..1000
EXAMPLE
2 is in the sequence because 2^2 + Prime(2) = 4 + 3 = 7 is a prime.
MATHEMATICA
Select[ Range[ 1000 ], PrimeQ[ #^2 + Prime[ # ] ] & ]
PROG
(PARI) { n=0; for (m=1, 10^9, if (isprime(m^2 + prime(m)), write("b064711.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Sep 23 2009
(Magma) [ n: n in [1..700] | IsPrime(n^2+NthPrime(n)) ]; // Klaus Brockhaus, Apr 12 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Oct 13 2001
STATUS
approved