|
|
A088465
|
|
Primes whose leftmost decimal digit is 1 and whose other decimal digits are all 7's.
|
|
2
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
In no element of this sequence can the number of 7's be congruent to 2 modulo 3.
|
|
LINKS
|
|
|
MATHEMATICA
|
Do[ a = 10^n + 7(10^n - 1)/9; If[ PrimeQ[a], Print[a]], {n, 1, 53}] (* Robert G. Wilson v, Dec 05 2003 *)
Select[Table[FromDigits[PadRight[{1}, n, 7]], {n, 0, 60}], PrimeQ] (* Harvey P. Dale, Jun 15 2022 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|