login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A098681
Largest prime smaller than n^n.
6
3, 23, 251, 3121, 46649, 823541, 16777213, 387420479, 9999999967, 285311670569, 8916100448237, 302875106592241, 11112006825557999, 437893890380859323, 18446744073709551557, 827240261886336764159, 39346408075296537575359
OFFSET
2,1
LINKS
MATHEMATICA
PrimePrev[n_]:=Module[{k}, k=n-1; While[ !PrimeQ[k], k-- ]; k]; f[n_]:=n^n; lst={}; Do[AppendTo[lst, PrimePrev[f[n]]], {n, 30}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 25 2010 *)
Table[NextPrime[n^n, -1], {n, 2, 20}] (* Harvey P. Dale, Dec 02 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Olaf Voß, Oct 27 2004
STATUS
approved