OFFSET
1,1
EXAMPLE
a(2)=a(3)=a(4)=3, as 3^2 + 2, 3^3 + 2, 3^4 + 2 are all prime.
PROG
(PARI) for(j=1, 50, forprime (i=1, 50000, if(isprime(i^j+2), print1(i, ", "); break())))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 17 2003
EXTENSIONS
More terms from Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 14 2004
More terms from David Wasserman, Jun 08 2005
STATUS
approved