OFFSET
1,1
MATHEMATICA
a = {2, 1, 3}; f[n_] := Block[{k = 1, b = Take[a, {n, 2n - 3}]}, While[Position[a, k] != {}, k++ ]; b = Join[b, IntegerDigits[k]]; a = Append[a, k]; While[ Position[a, k] != {} || !PrimeQ[ FromDigits[ Join[ b, IntegerDigits[k]]]], k++ ]; a = Append[a, k]]; Do[ f[n], {n, 3, 40}]; a
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Sep 29 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Oct 02 2002
STATUS
approved