OFFSET
1,1
EXAMPLE
a(2) = 10111= 10 followed by 11 followed by 1.
a(3) = 1231, three successive positive integers 1,2,3 in ascending order followed by a 1.
MATHEMATICA
a[n_]:=(For[m=1, (v={}; Do[v=Join[v, IntegerDigits[k]], {k, m, m+n-1}]); !PrimeQ[10FromDigits[v]+1], m++ ]; 10FromDigits[v]+1); Table[a[n], {n, 14}] - Farideh Firoozbakht
f[n_] := Block[{t = Range@n}, While[p = FromDigits@Flatten@IntegerDigits@Join[t, {1}]; !PrimeQ@p, t++ ]; p]; Array[f, 13] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jan 01 2006
EXTENSIONS
STATUS
approved