login
Primes of the form (k + 2)^k + 2.
1

%I #17 Sep 08 2022 08:46:07

%S 3,5,127,4782971,2357947693

%N Primes of the form (k + 2)^k + 2.

%C The values of k are 0, 1, 3, 7, 9, 259, ... - _Jinyuan Wang_, May 15 2020

%H Jinyuan Wang, <a href="/A240589/b240589.txt">Table of n, a(n) for n = 1..6</a>

%e 3 is in this sequence because (0+2)^0 + 2 = 1 + 2 = 3 for k = 0,

%e 5 is in this sequence because (1+2)^1 + 2 = 3 + 2 = 5 for k = 1,

%e 127 is in this sequence because (3+2)^3 + 2 = 125 + 2 = 127 for k = 3.

%o (Magma) [a: n in [0..9] | IsPrime(a) where a is (n+2)^n+2];

%K nonn

%O 1,1

%A _Ilya Lopatin_ and _Juri-Stepan Gerasimov_, Apr 08 2014