OFFSET
1,1
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; f[n_] := ToExpression[ ToString[n] <> ToString[ NextPrim[n]]]; NestList[f, 5, 7]
NestList[# 10^IntegerLength[NextPrime[#]]+NextPrime[#]&, 5, 10] (* Harvey P. Dale, Jul 02 2020 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Robert G. Wilson v, Feb 10 2002
STATUS
approved