login
A120823
a(n) consecutive digits ascending beginning with the digit 5 give a prime..
8
1, 29, 269, 689
OFFSET
1,2
COMMENTS
Digits are in ascending order beginning with 5 and after 9 comes 0.
The sequence "a(n) consecutive digits descending beginning with the digit 5 give a prime." has only one term, 1 which represents the prime 5.
a(5) > 10^5. - Michael S. Branicky, Apr 08 2025
EXAMPLE
29 is a term since the 29-digit number 56789012345678901234567890123 is a prime.
MATHEMATICA
fQ[n_] := PrimeQ@ FromDigits@ Mod[4+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 9000}]; lst
KEYWORD
nonn,base,hard,more
AUTHOR
Robert G. Wilson v, Jul 05 2006
STATUS
approved