A333185 Numbers k such that k^k is the average of its nearest 2 primes.
2, 6, 9, 940
Offset: 1
Examples
Previous P k^k Next P a(n) A098681(a(n)) A000312(a(n)) A098682(a(n)) 2 3 4 5 6 46649 46656 46663 9 387420479 387420489 387420499 940 940^940-3063 940^940 940^940+3063
Programs
-
PARI
isok(k) = if (k>1, my(x=k^k); precprime(x-1)+nextprime(x+1) == 2*x); \\ Michel Marcus, Mar 14 2020