|
|
A108835
|
|
Primes such that the outer 2 digits are n and n-1 and all inner digits are 7, where 0 < n < 9.
|
|
1
|
|
|
271, 877, 2777771, 8777777777, 8777777777777777, 877777777777777777777777777777777, 2777777777777777777777777777777771, 877777777777777777777777777777777777777, 877777777777777777777777777777777777777777777777777777777777777777
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The left side (most significant) digit must be 2 or 8. No odd digit can work because the least significant (right side) digit would then be even and thus the number would be divisible by 2. 6 will not work because the least significant (right side) digit would be 5 and thus the number would be divisible by 5. And 4 will not work because the resulting number is always divisible by 43. Harvey P. Dale, Jun 07 2023
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Sort[Flatten[Table[FromDigits[Join[{l}, PadRight[{}, d, 7], {l-1}]], {l, {2, 8}}, {d, 500}]]], PrimeQ] (* Harvey P. Dale, Jun 06 2023 *)
|
|
PROG
|
(PARI) n10np1(n, d) = { local(x, y, k); for(x=1, n, for(k=1, 8, y=10^(x+1)*k+floor(10^x*d/9)*10+k-1; if(isprime(y), print1(y", ")) ) ) }
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|