OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200 (first 100 terms from Paolo P. Lava)
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)
nxt[{j_, a_}]:=Module[{k=a+1}, While[!PrimeQ[j*10^IntegerLength[k]+k], k++]; {j*10^ IntegerLength[ k]+k, k}]; NestList[nxt, {1, 1}, 50][[;; , 2]] (* Harvey P. Dale, Sep 10 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Sep 23 2002
EXTENSIONS
More terms from Robert G. Wilson v, Aug 05 2005
STATUS
approved