|
|
A120820
|
|
Primes with n consecutive digits ascending beginning with the digit two.
|
|
8
|
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Digits are in ascending order beginning with 2 and after 9 comes 0.
The sequence "Primes with n consecutive digits descending beginning with the digit two" has only one term, 1 which represents the prime 2.
|
|
LINKS
|
|
|
EXAMPLE
|
8 is a term since 23456789 is a prime.
|
|
MATHEMATICA
|
fQ[n_] := PrimeQ@ FromDigits@ Mod[1+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 10000}]; lst
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,hard,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|