cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A108843 Palindromic primes in which all internal digits are 6.

Original entry on oeis.org

16661, 76667, 7666667, 1666666666661, 16666666666666661, 1666666666666666661, 1666666666666666666666666666666666661, 16666666666666666666666666666666666666666666666666661
Offset: 1

Views

Author

Cino Hilliard, Jul 11 2005

Keywords

Comments

The external digits must either be ones or sevens. - Harvey P. Dale, Apr 06 2019
a(15) has 3385 digits. - Michael S. Branicky, Jan 27 2023

Crossrefs

Similar sequences for digit d: A108845 (d=1), A108846 (d=2), A108841 (d=4), A108842 (d=5), A108844 (d=7), A108847 (d=8), A108848 (d=9).

Programs

  • Mathematica
    nn=80;With[{o=Table[FromDigits[Join[PadRight[{1},n,6],{1}]],{n,3,nn}], s= Table[ FromDigits[Join[PadRight[{7},n,6],{7}]],{n,3,nn}]}, Select[ Sort[ Join[o,s]],PrimeQ]] (* Harvey P. Dale, May 26 2014 *)
  • 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; if(isprime(y),print1(y",")) ) ) }
    
  • Python
    from sympy import isprime
    from itertools import count, islice
    def agen(): yield from (t for i in count(1) for f in "17" if isprime(t:=int(f + "6"*i + f)))
    print(list(islice(agen(), 10))) # Michael S. Branicky, Jan 27 2023

Extensions

Name changed by Arkadiusz Wesolowski, Sep 07 2011

A108845 Palindromic primes in which all internal digits are 1.

Original entry on oeis.org

313, 919, 3111111111113, 311111111111113, 1111111111111111111, 11111111111111111111111, 3111111111111111111111111111113
Offset: 1

Views

Author

Cino Hilliard, Jul 11 2005

Keywords

Comments

a(14) has 1031 digits. - Michael S. Branicky, Jan 27 2023

Crossrefs

Similar sequences for digit d: A108846 (d=2), A108841 (d=4), A108842 (d=5), A108843 (d=6), A108844 (d=7), A108847 (d=8), A108848 (d=9).

Programs

  • PARI
    n10np1(n,d) = { local(x,y,k); for(x=1,n, for(k=1,9, y=10^(x+1)*k+floor(10^x*d/9)*10+k; if(isprime(y),print1(y",")) ) ) }
    
  • Python
    from sympy import isprime
    from itertools import count, islice
    def agen(): yield from (t for i in count(1) for f in "1379" if isprime(t:=int(f + "1"*i + f)))
    print(list(islice(agen(), 10))) # Michael S. Branicky, Jan 27 2023

Extensions

Name changed by Arkadiusz Wesolowski, Sep 07 2011

A108846 Palindromic primes in which all internal digits are 2.

Original entry on oeis.org

727, 929, 72227, 3222223, 9222229, 322222223, 722222227, 9222222222229, 72222222222222222222222222227, 72222222222222222222222222222222222222222222222222222222222222227
Offset: 1

Views

Author

Cino Hilliard, Jul 11 2005

Keywords

Comments

a(14) has 1525 digits. - Michael S. Branicky, Jan 27 2023

Crossrefs

Similar sequences for digit d: A108845 (d=1), A108841 (d=4), A108842 (d=5), A108843 (d=6), A108844 (d=7), A108847 (d=8), A108848 (d=9).

Programs

  • Mathematica
    Select[Flatten[Table[10 FromDigits[PadRight[{d},n,2]]+d,{d,{1,3,7,9}},{n,2,70}]],PrimeQ]//Sort (* Harvey P. Dale, Feb 05 2023 *)
  • PARI
    n10np1(n,d) = { local(x,y,k); for(x=1,n, for(k=1,9, y=10^(x+1)*k+floor(10^x*d/9)*10+k; if(isprime(y),print1(y",")) ) ) }
    
  • Python
    from sympy import isprime
    from itertools import count, islice
    def agen(): yield from (t for i in count(1) for f in "1379" if isprime(t:=int(f + "2"*i + f)))
    print(list(islice(agen(), 10))) # Michael S. Branicky, Jan 27 2023

Extensions

Name changed by Arkadiusz Wesolowski, Sep 07 2011

A108847 Palindromic primes in which all internal digits are 8.

Original entry on oeis.org

181, 383, 787, 78887, 9888889, 188888881, 3888888888883, 188888888888881, 3888888888888888888888888888883, 18888888888888888888888888888888888888881
Offset: 1

Views

Author

Cino Hilliard, Jul 11 2005

Keywords

Comments

a(27) has 1065 digits. - Michael S. Branicky, Jan 27 2023

Crossrefs

Similar sequences for digit d: A108845 (d=1), A108846 (d=2), A108841 (d=4), A108842 (d=5), A108843 (d=6), A108844 (d=7), A108848 (d=9).

Programs

  • PARI
    n10np1(n,d) = { local(x,y,k); for(x=1,n, for(k=1,9, y=10^(x+1)*k+floor(10^x*d/9)*10+k; if(isprime(y),print1(y",")) ) ) }
    
  • Python
    from sympy import isprime
    from itertools import count, islice
    def agen(): yield from (t for i in count(1) for f in "1379" if isprime(t:=int(f + "8"*i + f)))
    print(list(islice(agen(), 10))) # Michael S. Branicky, Jan 27 2023

Extensions

Name changed by Arkadiusz Wesolowski, Sep 07 2011
One comment moved to A068689 by Michel Marcus, Jan 28 2023
Showing 1-4 of 4 results.