login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A120826
Primes with n consecutive digits ascending beginning with the digit eight.
8
OFFSET
1,1
COMMENTS
Digits are in ascending order beginning with 8 and after 9 comes 0.
The sequence "Primes with n consecutive digits descending beginning with the digit eight" has no terms.
EXAMPLE
2 is a term since 89 is a prime.
MATHEMATICA
fQ[n_] := PrimeQ@ FromDigits@ Mod[7+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 5000}]; lst
KEYWORD
base,bref,hard,nonn
AUTHOR
Robert G. Wilson v, Jul 05 2006
STATUS
approved