login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Sequence in context: A245969 A157485 A038655 * A185668 A296038 A287232
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jul 11 2005
EXTENSIONS
More terms from Harvey P. Dale, Jul 23 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)