OFFSET
1,1
COMMENTS
Digits can be in ascending or descending order. After 9 comes 0 or after 0 comes 1.
The number of primes with n consecutive digits: 4,4,1,1,3,1,0,2,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,...,.
MATHEMATICA
f[n_] := Block[{u = Range@n, d = Reverse@ Range@n, t = Table[1, {n}]}, Select[ Drop[ Union@ Flatten@ Table[ FromDigits /@ Mod[{u, d} + {i*t, i*t}, 10], {i, 10}], 2], PrimeQ@# &]]; Array[f, 35] // Flatten
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Jul 05 2006
STATUS
approved