A080441 a(1) = 17, a(n) is the smallest prime obtained by inserting digits between every pair of digits of a(n-1).
17, 107, 10007, 100000007, 10000000000003037, 100000000000000000000000003000307, 10000000000000000000000000000000000000000000000000003000000030057
Offset: 1
Links
- Julio Cesar Hernandez-Castro, Table of n, a(n) for n = 1..12
Programs
-
Mathematica
a[n_] := Block[{d = IntegerDigits[n]}, k = Length[d]; While[k > 1, d = Insert[d, 0, k]; k-- ]; d = FromDigits[d]; e = d; k = 0; While[ !PrimeQ[e], k++; e = d + 10FromDigits[ IntegerDigits[k], 100]]; e]; NestList[a, 17, 6]
Extensions
Edited and extended by Robert G. Wilson v, Feb 22 2003
Comments