cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A120827 a(n) consecutive digits ascending beginning with the digit 9 give a prime.

Original entry on oeis.org

13, 29, 43
Offset: 1

Views

Author

Robert G. Wilson v, Jul 05 2006

Keywords

Comments

Digits are in ascending order beginning with 9 and after 9 comes 0.
The sequence "a(n) consecutive digits descending beginning with the digit 9 give a prime" has no terms.
There is no further term up to 26000. - Farideh Firoozbakht, Sep 11 2006
There is no further term up to 150000. - Michael S. Branicky, Apr 22 2025

Examples

			13 is a term since 9012345678901 is a prime.
		

Crossrefs

Programs

  • Mathematica
    fQ[n_] := PrimeQ@ FromDigits@ Mod[8+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 5000}]; lst
    Flatten[Position[Table[FromDigits[PadRight[{},n,{9,0,1,2,3,4,5,6,7,8}]],{n,100}],?PrimeQ]] (* _Harvey P. Dale, Sep 06 2015 *)