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-10 of 11 results. Next

A069611 a(1) = 9; a(n) = smallest number such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

9, 7, 1, 9, 17, 13, 33, 23, 7, 77, 31, 59, 51, 27, 7, 269, 439, 11, 429, 163, 39, 11, 463, 77, 63, 39, 33, 93, 21, 139, 53, 159, 49, 9, 291, 111, 21, 23, 349, 83, 3, 37, 11, 57, 21, 219, 507, 1233, 429, 147, 627, 127, 399, 27, 63, 423, 111, 633, 1391, 297, 831, 283
Offset: 1

Views

Author

Amarnath Murthy, Mar 26 2002

Keywords

Examples

			a(5) = 17 and the number 971917 is a prime.
		

Crossrefs

Programs

  • Mathematica
    a[1] = 9; a[n_] := a[n] = Block[{k = 1, c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 63}] (* Robert G. Wilson v, Aug 05 2005 *)

Extensions

More terms from Jason Earls, Jun 13 2002

A074336 a(1) = 1; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

1, 3, 7, 11, 13, 29, 37, 113, 121, 149, 151, 201, 219, 251, 451, 453, 573, 669, 689, 697, 749, 913, 969, 1157, 1269, 1503, 1531, 1809, 2087, 2163, 2179, 2511, 2537, 2599, 2709, 2789, 2929, 3243, 3989, 4033, 4151, 5019, 5389, 5423, 5599, 6179, 6433, 8267
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)
    nxt[{j_,a_}]:=Module[{k=a+1},While[!PrimeQ[j*10^IntegerLength[k]+k],k++];{j*10^ IntegerLength[ k]+k,k}]; NestList[nxt,{1,1},50][[;;,2]] (* Harvey P. Dale, Sep 10 2024 *)

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A074338 a(1) = 2; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

2, 3, 9, 11, 13, 63, 71, 93, 187, 189, 201, 207, 243, 347, 369, 439, 473, 529, 611, 847, 1209, 1331, 1423, 1581, 1593, 1617, 1679, 1791, 2067, 2529, 2541, 2563, 2751, 3347, 3583, 3677, 3777, 4359, 4701, 4771, 5657, 6183, 6193, 6353, 6511, 6539, 6769, 6939
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 2; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A074340 a(1) = 5; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

5, 9, 23, 37, 39, 47, 57, 97, 119, 187, 257, 271, 273, 281, 309, 367, 449, 529, 687, 759, 933, 1031, 1131, 1237, 1263, 1343, 1731, 1861, 2177, 2337, 2589, 2607, 2743, 3191, 3199, 3281, 3499, 3807, 3867, 4133, 6079, 6189, 6593, 7207, 7479, 7523, 8569, 8571
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 5; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)
  • Python
    from sympy import isprime
    def aupton(terms):
      alst, astr = [5], "5"
      while len(alst) < terms:
        an = alst[-1] + 2
        while an%5 ==0 or not isprime(int(astr + str(an))): an += 2
        alst, astr = alst + [an], astr + str(an)
      return alst
    print(aupton(48)) # Michael S. Branicky, May 09 2021

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A074341 a(1) = 4; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

4, 7, 9, 11, 81, 87, 109, 117, 123, 129, 201, 389, 429, 441, 771, 811, 831, 1037, 1143, 1299, 1569, 1581, 1803, 1837, 1943, 2053, 2171, 2379, 2431, 3201, 3437, 3489, 3723, 3841, 4289, 4801, 5523, 6249, 7083, 7467, 7749, 8171, 9073, 9333, 9683, 9781, 10833
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 4; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 47}] (* Robert G. Wilson v *)
    nxt[{j_,a_}]:=Module[{k=a+1},While[!PrimeQ[j*10^IntegerLength[k]+k],k++];{j*10^IntegerLength[k]+k,k}]; NestList[nxt,{4,4},50][[;;,2]] (* Harvey P. Dale, Apr 07 2025 *)

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A074342 a(1) = 6; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

6, 7, 19, 21, 23, 27, 57, 183, 207, 231, 247, 267, 399, 417, 441, 459, 569, 603, 693, 847, 933, 1107, 1149, 1197, 1251, 1581, 1619, 2061, 2137, 2139, 2339, 2643, 2703, 2743, 2847, 2987, 3199, 3447, 3477, 3641, 3919, 4241, 4369, 4599, 4761, 6647, 6739, 6831
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 6; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)
    nxt[{j_,a_}]:=Module[{k=a+2},While[CompositeQ[j(10^ IntegerLength[ k])+k],k+=2];{j(10^IntegerLength[k])+k,k}]; Join[{6},NestList[ nxt,{67,7},50][[All,2]]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 19 2021 *)
  • Python
    from sympy import isprime
    def aupton(terms):
      alst, astr = [6], "6"
      for n in range(2, terms+1):
        an = alst[-1] + 1
        while not isprime(int(astr+str(an))): an += 1
        alst, astr = alst + [an], astr + str(an)
      return alst
    print(aupton(62)) # Michael S. Branicky, Jun 07 2021

Extensions

Corrected and extended by Robert G. Wilson v, Aug 05 2005

A074346 a(1) = 10; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

10, 13, 23, 49, 111, 113, 171, 211, 293, 309, 333, 387, 463, 479, 513, 687, 933, 973, 993, 1329, 1433, 1449, 1551, 2071, 2271, 2423, 2587, 2621, 2659, 2757, 2771, 2911, 3081, 3243, 3279, 3671, 4243, 4247, 4371, 4453, 4511, 5229, 6097, 6177, 6293, 6571
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 10; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 46}] (* Robert G. Wilson v, Aug 05 2005 *)
  • Python
    from sympy import isprime
    def aupton(terms):
        alst, astr = [10], "10"
        while len(alst) < terms:
            k = alst[-1] + 1 + (alst[-1]%2)
            while not isprime(int(astr+str(k))): k += 2
            alst.append(k)
            astr += str(k)
        return alst
    print(aupton(46)) # Michael S. Branicky, Oct 13 2021

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A046259 a(1) = 9; a(n) is smallest number >= a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

9, 11, 21, 21, 23, 33, 37, 93, 119, 129, 133, 147, 293, 321, 429, 433, 497, 627, 661, 897, 1161, 1187, 1197, 1711, 1769, 1807, 2097, 2099, 4143, 4149, 4197, 4587, 4587, 5629, 5711, 5889, 6153, 6351, 6399, 6511, 6651, 7179, 7563, 7661, 8071, 8163, 9663
Offset: 1

Views

Author

Patrick De Geest, May 15 1998

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 9; a[n_] := a[n] = Block[{k = a[n - 1], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v, Aug 05 2005 *)

A074339 a(1) = 3; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

3, 7, 9, 51, 57, 103, 119, 121, 183, 293, 301, 351, 447, 479, 577, 741, 839, 1051, 1277, 1431, 1633, 1877, 2043, 2251, 2303, 2659, 2937, 3447, 3897, 3969, 4059, 4179, 4371, 4389, 4563, 4841, 4903, 5097, 5103, 5369, 5689, 6621, 6831, 6927, 7479, 9227, 9351
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 3; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 47}] (* Robert G. Wilson v *)

Extensions

More terms from Robert G. Wilson v, Aug 05 2005

A074343 a(1) = 7; a(n) is smallest number > a(n-1) such that the juxtaposition a(1)a(2)...a(n) is a prime.

Original entry on oeis.org

7, 9, 19, 27, 47, 57, 61, 81, 179, 211, 251, 273, 373, 477, 581, 753, 847, 909, 971, 1399, 1623, 1967, 2139, 2629, 2979, 3297, 3393, 3647, 3793, 4281, 4337, 4411, 4517, 4831, 4979, 5131, 5841, 5897, 5953, 5991, 6287, 6309, 8101, 8147, 8521, 8877, 8969, 9699
Offset: 1

Views

Author

Zak Seidov, Sep 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 7; a[n_] := a[n] = Block[{k = a[n - 1] + 1 + Mod[a[n - 1], 2], c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 48}] (* Robert G. Wilson v *)

Extensions

More terms from Robert G. Wilson v, Aug 05 2005
Showing 1-10 of 11 results. Next