login
Primes of the form k^k-k-1.
3

%I #5 Mar 25 2023 22:21:36

%S 23,251,3119,46649,387420479,827240261886336764159,

%T 341427877364219557396646723561,

%U 100140253328453899494506997059845948876248360208192710258703340107188607793155063635811515105559240430619077757390331456723193970237417715907213278114795684814453039

%N Primes of the form k^k-k-1.

%C The associated k are in A065798. - _R. J. Mathar_, Jun 12 2009

%t lst={};Do[p=n^n-n-1;If[PrimeQ[p],AppendTo[lst,p]],{n,5!}];lst

%Y Cf. A065798.

%K nonn

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Jun 10 2009

%E Definition simplified by _R. J. Mathar_, Jun 12 2009