|
Search: id:A120820
|
|
|
| A120820 |
|
Primes with n consecutive digits ascending beginning with the digit two. |
|
+0 9
|
| |
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
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.
|
|
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
|
Cf. A006055, A120819, A120821, A120822, A120823, A120824, A120825, A120826, A120827.
Sequence in context: A134054 A134086 A013175 this_sequence A134089 A136647 A052456
Adjacent sequences: A120817 A120818 A120819 this_sequence A120821 A120822 A120823
|
|
KEYWORD
|
base,hard,nonn
|
|
AUTHOR
|
Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 05 2006
|
|
|
Search completed in 0.002 seconds
|