OFFSET
1,1
MATHEMATICA
PrimePrev[n_]:=Module[{k=n}, While[ !PrimeQ[k], k-- ]; k]; f[n_]:=3^n; lst={}; Do[AppendTo[lst, PrimePrev[f[n]]], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 26 2010 *)
Join[{3}, NextPrime[3^Range[2, 50], -1]] (* Harvey P. Dale, Jun 20 2021 *)
PROG
(PARI) g(n, b) = for(x=0, n, print1(precprime(b^x)", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Mar 03 2005
STATUS
approved