Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A046259
a(1) = 9; a(n) is smallest number >= a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.
11
9, 11, 21, 21, 23, 33, 37, 93, 119, 129, 133, 147, 293, 321, 429, 433, 497, 627, 661, 897, 1161, 1187, 1197, 1711, 1769, 1807, 2097, 2099, 4143, 4149, 4197, 4587, 4587, 5629, 5711, 5889, 6153, 6351, 6399, 6511, 6651, 7179, 7563, 7661, 8071, 8163, 9663
OFFSET
1,1
MATHEMATICA
a[1] = 9; a[n_] := a[n] = Block[{k = a[n - 1], 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, Aug 05 2005 *)
KEYWORD
nonn
AUTHOR
Patrick De Geest, May 15 1998
STATUS
approved