|
COMMENT
|
Prime(6466) is 64661, which begins with 6466, so 6466 is a term of the sequence.
The next term is greater than 4*10^41. - Robert Gerbicz (gerbicz(AT)freemail.hu), Sep 05 2002
|
|
MATHEMATICA
|
(*returns true if a begins with b, false o.w.*) f[a_, b_] := Module[{c, d, e, g, h, i, r}, r = False; c = ToString[a]; d = ToString[b]; g = StringPosition[c, d]; h = Length[g]; If[h > 0, i = g[[h]]; If[i[[1]] == 1, r = True]]; r]; Do[If[f[Prime[n], n], Print[n]], {n, 1, 10^5} ]
|