login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes of the form n^n-2.
2

%I #5 Feb 12 2023 10:25:00

%S 2,823541,1978419655660313589123977,5842587018385982521381124419,

%T 88817841970012523233890533447265623,

%U 66009724686219550843768321818371771650147004059278069406814190436565131829325062447

%N Primes of the form n^n-2.

%t f[n_]:=n^n-2; lst={};Do[If[PrimeQ[f[n]],AppendTo[lst,f[n]]],{n,5!}];lst

%t Join[{2},Select[Table[n^n-2,{n,1,51,2}],PrimeQ]] (* _Harvey P. Dale_, Feb 12 2023 *)

%Y Main sequence is A100408.

%K nonn

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Jul 17 2009

%E Cross-reference from _Charles R Greathouse IV_, Oct 08 2009