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-7 of 7 results.

A075595 Smallest prime that is obtained by placing digits on both sides of the n-th prime. Or smallest prime that encompasses the n-th prime.

Original entry on oeis.org

127, 131, 151, 173, 1117, 2131, 1171, 1193, 1231, 1291, 1319, 1373, 2411, 1433, 1471, 1531, 1597, 1613, 2671, 2711, 1733, 2791, 1831, 2897, 1973, 21011, 21031, 11071, 11093, 11131, 11273, 11311, 21377, 11393, 11491, 11519, 11579, 11633
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Comments

For small primes, the prefix required is usually 1 or 2.

Crossrefs

Programs

  • Maple
    f:= proc(n) local m,d,d1,v,x,y,y0,z,found;
      m:= ilog10(n);
      v:= infinity;
      for d from 2 do
        for d1 from 1 to d-1 do
          found:= false;
          for x from 10^(d1-1) to 10^d1-1 while not found do
            if d-d1=1 then y0:= 1 else y0:= 10^(d-d1-1)+1 fi;
            for y from y0 to 10^(d-d1)-1 by 2 do
              z:= y+10^(d-d1)*n + 10^(d-d1+m+1)*x;
              if isprime(z) then v:= min(v,z); found:= true; break fi
          od od;
        od;
        if v < infinity then return v fi
      od
    end proc:
    map(f@ithprime, [$1..100]); # Robert Israel, Aug 28 2018

Extensions

Corrected and extended by Sascha Kurz, Jan 20 2003

A075597 a(1) = 3 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

3, 131, 11311, 3113111, 231131111, 22311311119, 3223113111199, 132231131111993, 11322311311119931, 7113223113111199313, 171132231131111993137, 31711322311311119931373, 3317113223113111199313733
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Programs

  • Mathematica
    NestList[Select[Flatten[Table[FromDigits[Join[{a},IntegerDigits[#],{b}]],{a,9},{b,1,9,2}]],PrimeQ][[1]]&,3,12] (* Harvey P. Dale, Nov 11 2022 *)

Extensions

More terms from Sascha Kurz, Jan 20 2003
One more term from David Wasserman, Jan 20 2005

A075598 a(1) = 5 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

5, 151, 11519, 2115193, 121151939, 21211519397, 4212115193971, 342121151939719, 43421211519397199, 2434212115193971993, 224342121151939719937, 122434212115193971993787, 51224342121151939719937871, 2512243421211519397199378719, 325122434212115193971993787197, 93251224342121151939719937871973
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Programs

  • Maple
    f:= proc(n) local m,d,d1,v,x,y,y0,z,found;
      m:= ilog10(n);
      v:= infinity;
      for d from 2 do
        for d1 from 1 to d-1 do
          found:= false;
          for x from 10^(d1-1) to 10^d1-1 while not found do
            if d-d1=1 then y0:= 1 else y0:= 10^(d-d1-1)+1 fi;
            for y from y0 to 10^(d-d1)-1 by 2 do
              z:= y+10^(d-d1)*n + 10^(d-d1+m+1)*x;
              if isprime(z) then v:= min(v,z); found:= true; break fi
          od od;
        od;
        if v < infinity then return v fi
      od
    end proc:
    A[1]:= 5:
    for n from 2 to 20 do
      A[n]:= f(A[n-1])
    od:
    seq(A[n],n=1..20); # Robert Israel, Aug 28 2018

Extensions

More terms from Sascha Kurz, Jan 20 2003
Terms a(13) and beyond from Robert Israel, Aug 28 2018

A075596 a(1) = 2 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

2, 127, 11273, 1112731, 411127319, 34111273199, 3341112731993, 233411127319933, 32334111273199339, 3323341112731993391, 633233411127319933919, 66332334111273199339193, 1663323341112731993391937
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Extensions

More terms from Sascha Kurz, Jan 20 2003
One more term from David Wasserman, Jan 20 2005

A075599 a(1) = 7 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

7, 173, 11731, 2117317, 421173173, 34211731733, 1342117317337, 813421173173377, 28134211731733771, 4281342117317337713, 142813421173173377131, 21428134211731733771317, 2214281342117317337713171, 2022142813421173173377131711, 1120221428134211731733771317111
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Extensions

More terms from Sascha Kurz, Jan 20 2003
Further terms from Ray G. Opao, Nov 26 2004
a(14)-a(15) corrected by Sean A. Irvine, Feb 26 2025

A075600 a(1) = 11 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

11, 1117, 211177, 12111773, 1121117731, 1112111773139, 811121117731399, 18111211177313993, 5181112111773139933, 351811121117731399339, 63518111211177313993399, 11635181112111773139933991
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Extensions

More terms from Sascha Kurz, Jan 20 2003

A075602 a(1) = 17 and then the smallest prime that is obtained by placing digits on both sides of the previous term. Or smallest prime that encompasses a(n-1).

Original entry on oeis.org

17, 1171, 211711, 32117117, 6321171179, 263211711799, 42632117117999, 6426321171179993, 564263211711799931, 15642632117117999311, 1156426321171179993119, 311564263211711799931199
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2002

Keywords

Crossrefs

Extensions

More terms from Sascha Kurz, Jan 23 2003
Showing 1-7 of 7 results.