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!)
A068688 Primes which are a sandwich of numbers made of only one digit between two 7's. 2
727, 757, 787, 797, 72227, 75557, 76667, 78887, 79997, 7666667, 722222227, 74444444447, 75555555557, 755555555555555555557, 75555555555555555555557, 72222222222222222222222222227, 79999999999999999999999999997, 7444444444444444444444444444447 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The middle digit is never 0, 1, 3, or 7. - Harvey P. Dale, May 05 2018
a(40) has 1213 digits. - Michael S. Branicky, Jan 28 2023
LINKS
MATHEMATICA
Select[Flatten[Table[10FromDigits[PadRight[{7}, n, i]]+7, {n, 2, 100}, {i, 9}]], PrimeQ] (* Harvey P. Dale, May 05 2018 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): yield from (t for i in count(1) for m in "0123456789" if isprime(t:=int("7" + m*i + "7")))
print(list(islice(agen(), 30))) # Michael S. Branicky, Jan 28 2023
CROSSREFS
Sequence in context: A084412 A090268 A090267 * A088283 A123096 A108846
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 02 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 17 2002
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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)