login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120823 Number of digits of the smallest prime with n consecutive ascending digits and most significant digit a five. 9

%I #10 Nov 08 2013 13:49:11

%S 1,29,269,689

%N Number of digits of the smallest prime with n consecutive ascending digits and most significant digit a five.

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

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

%e 29 is a term since the 29-digit number 56789012345678901234567890123 is a prime.

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

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

%K base,hard,nonn

%O 1,2

%A _Robert G. Wilson v_, Jul 05 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)