|
|
A120827
|
|
Primes with n consecutive digits ascending beginning with the digit nine.
|
|
8
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Digits are in ascending order beginning with 9 and after 9 comes 0.
The sequence "Primes with n consecutive digits descending beginning with the digit nine" has no terms.
|
|
LINKS
|
|
|
EXAMPLE
|
13 is a term since 9012345678901 is a prime.
|
|
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 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,bref,hard,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|