Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%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