OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..300
EXAMPLE
The primes obtained by inserting/placing a digit in a(2) = 19 are 109, 139, 149, 179, 199 etc. and a(3) = 109 is the smallest.
MATHEMATICA
f[n_] := Block[{b = PadLeft[ IntegerDigits[n], Floor[ Log[10, n] + 1]], k = 0}, While[ !PrimeQ[ FromDigits[ Insert[b, k, -2]]], k++ ]; FromDigits[ Insert[b, k, -2]]]; NestList[ f, 9, 18]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 25 2002
EXTENSIONS
Edited by N. J. A. Sloane and Robert G. Wilson v, May 08 2002
Corrected and extended by Robert Gerbicz, Sep 06 2002
STATUS
approved