OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[ Range[ 1000 ], PrimeQ[ Prime[ # ]^2 + # ] & ]
PROG
(PARI) j=[]; for(n=1, 1500, if(isprime(prime(n)^2+n), j=concat(j, n))); j
(PARI) { n=0; for (m=1, 10^9, if (isprime(prime(m)^2 + m), write("b064361.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Sep 12 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Sep 26 2001
STATUS
approved