[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A120829
Primes with n consecutive digits descending beginning with the digit four.
2
2, 64, 176, 1502, 4676, 6933, 8173
OFFSET
1,1
COMMENTS
Digits are in descending order beginning with 1 and after 0 comes 9.
EXAMPLE
2 is a term since 43 is a prime.
MATHEMATICA
fQ[n_] := PrimeQ@ FromDigits@ Mod[5-Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 10000}]; lst
CROSSREFS
KEYWORD
base,hard,nonn
AUTHOR
Robert G. Wilson v, Jul 05 2006
STATUS
approved