OFFSET
1,1
COMMENTS
The values of k are 0, 1, 3, 7, 9, 259, ... - Jinyuan Wang, May 15 2020
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..6
EXAMPLE
3 is in this sequence because (0+2)^0 + 2 = 1 + 2 = 3 for k = 0,
5 is in this sequence because (1+2)^1 + 2 = 3 + 2 = 5 for k = 1,
127 is in this sequence because (3+2)^3 + 2 = 125 + 2 = 127 for k = 3.
PROG
(Magma) [a: n in [0..9] | IsPrime(a) where a is (n+2)^n+2];
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Lopatin and Juri-Stepan Gerasimov, Apr 08 2014
STATUS
approved