login
Primes with n consecutive digits ascending beginning with the digit two.
8

%I #3 Mar 30 2012 17:31:20

%S 1,2,8,82,118,158,2122,2242,2388

%N Primes with n consecutive digits ascending beginning with the digit two.

%C Digits are in ascending order beginning with 2 and after 9 comes 0.

%C The sequence "Primes with n consecutive digits descending beginning with the digit two" has only one term, 1 which represents the prime 2.

%e 8 is a term since 23456789 is a prime.

%t fQ[n_] := PrimeQ@ FromDigits@ Mod[1+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 10000}]; lst

%Y Cf. A006055, A120819, A120821, A120822, A120823, A120824, A120825, A120826, A120827.

%K base,hard,nonn

%O 1,2

%A _Robert G. Wilson v_, Jul 05 2006