OFFSET
1,1
COMMENTS
Smallest n-digit term of A215421.
EXAMPLE
a(4) = 1009 is the smallest 4-digit prime which yields 5 primes by inserting a 9 in every possible position: 91009, 19009, 10909, 10099, 10099.
MATHEMATICA
pp[n_, k_] := Catch[Block[{d = IntegerDigits@n}, Do[If[! PrimeQ[ FromDigits[ Insert[d, k, i]]], Throw[False]], {i, 1+Length@d}]; True]]; a[n_] := Catch[ Block[{p = NextPrime[10^(n-1)]}, While[p < 10^n, If[pp[p, 9], Throw@p, p = NextPrime@p]]; 0]]; a /@ Range[8]
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Giovanni Resta, Aug 13 2013
STATUS
approved