OFFSET
1,1
COMMENTS
Observe that the digits 0 and 9 do not appear in any 4-digit or 7-digit prime in this sequence. Also note that no 10-digit prime has this form (since the sum of 10 consecutive digits is divisible by 3).
LINKS
T. D. Noe and David Consiglio, Jr., Table of n, a(n) for n = 1..9463 (terms < 5 x 10^7. The 1287 terms < 10^7 were entered by T. D. Noe.)
EXAMPLE
2143 is a term as its digits can be arranged as 1234.
109 is a terms since the digits can be permuted to give 901.
MATHEMATICA
cyclicP[n_] := Module[{d = Mod[Range[n + 9], 10], ds, u, i}, ds = Partition[d, n, 1]; u = {}; Do[u = Union[u, Select[FromDigits/@Permutations[ds[[i]]], # > 10^(n - 1) && PrimeQ[#] &]], {i, 10}]; u]; Flatten[Table[cyclicP[n], {n, 7}]]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy and V. P. Singh, Mar 05 2002
EXTENSIONS
Jan 22 2011: There were omissions after the term 6857 (10243 for example), so I deleted the terms beyond this point, and the presumably erroneous Mma program that accompanied them. Thanks to Marco RipĂ for pointing out that there were errors. - N. J. A. Sloane
Corrected by T. D. Noe, Jan 24 2011
STATUS
approved