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!)
A068689 Primes which are a sandwich of numbers made of only one decimal digit between two 9's. 3
919, 929, 9222229, 9888889, 9222222222229, 9888888888888888888888888888888888888888888888888888888888888888888888889 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Conjecture: Inner digits 1, 2 and 8 are the only repeating digits for which the resulting numbers can be prime for outer digits 9. I.e., 9444..4449, 9555..5559, 9777..7779 are composite. The cases for inner digits 0, 3, 6 and 9 give composite numbers. - Cino Hilliard, Jul 11 2005
a(13) has 1141 digits. - Michael S. Branicky, Jan 28 2023
LINKS
PROG
(PARI) lista(nn) = my(list = List(), p); for (n=1, nn, for (k=1, 8, my(d=vector(n, i, k)); d = concat(9, d); d = concat(d, 9); if (ispseudoprime(p=fromdigits(d)), listput(list, p)); ); ); Vec(list); \\ Michel Marcus, Jan 28 2023
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): yield from (t for i in count(1) for m in "124578" if isprime(t:=int("9" + m*i + "9")))
print(list(islice(agen(), 11))) # Michael S. Branicky, Jan 28 2023
CROSSREFS
Sequence in context: A179673 A082518 A128375 * A088284 A020399 A084843
KEYWORD
nonn,base
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 July 13 15:08 EDT 2024. Contains 374284 sequences. (Running on oeis4.)