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

A199340 Primes having only {0, 3, 4} as digits.

Original entry on oeis.org

3, 43, 433, 443, 3343, 3433, 4003, 30403, 33343, 33403, 34033, 34303, 34403, 40343, 40433, 43003, 43403, 300043, 300343, 304033, 304303, 304433, 330433, 333433, 334043, 334333, 334403, 343303, 343333, 343433, 400033, 403003, 403043, 403433, 430303, 430333
Offset: 1

Views

Author

M. F. Hasler, Nov 05 2011

Keywords

Comments

All terms end in '3'. This could be used to speed up the given program.
A020461 is a subsequence. - Vincenzo Librandi, Jul 23 2015

Crossrefs

Cf. Primes that contain only the digits (3,4,k): this sequence (k=0), A199341 (k=1), A199342 (k=2), A199345 (k=5), A199346 (k=6), A199347 (k=7), A199348 (k=8), A199349 (k=9).

Programs

  • Magma
    [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [3, 4, 0]]; // Vincenzo Librandi, Jul 23 2015
    
  • Mathematica
    Select[Prime[Range[5 10^4]], Complement[IntegerDigits[#], {3, 4, 0}]=={} &] (* Vincenzo Librandi, Jul 23 2015 *)
    Select[FromDigits/@Tuples[{0,3,4},6],PrimeQ] (* Harvey P. Dale, Mar 21 2020 *)
    Select[10#+3&/@FromDigits/@Tuples[{0,3,4},5],PrimeQ] (* Harvey P. Dale, May 02 2022 *)
  • PARI
    a(n, list=0, L=[0, 3, 4], reqpal=0)={my(t); for(d=1, 1e9, u=vector(d, i, 10^(d-i))~; forvec(v=vector(d, i, [1+(i==1&!L[1]), #L]), isprime(t=vector(d, i, L[v[i]])*u)||next; reqpal && !isprime(A004086(t)) && next; list && print1(t", "); n--||return(t)))} \\ Syntax updated for current PARI version. - M. F. Hasler, Jul 25 2015
    
  • PARI
    {forprime(p=3,1e6,p%10==3&&!setminus(Set(digits(p)),[3,4])&&print1(p","))} \\ [0] evaluates to false. - M. F. Hasler, Jul 25 2015

A199349 Primes having only {3, 4, 9} as digits.

Original entry on oeis.org

3, 43, 349, 433, 439, 443, 449, 499, 3343, 3433, 3449, 3499, 3943, 4339, 4349, 4493, 4933, 4943, 4993, 4999, 9343, 9349, 9433, 9439, 9949, 33343, 33349, 33493, 34439, 34499, 34939, 34949, 39343, 39439, 39443, 39499, 43399, 43499, 43933, 43943, 44449, 44939, 49333, 49339, 49393, 49433, 49499, 49939, 49943, 49993
Offset: 1

Views

Author

M. F. Hasler, Nov 05 2011

Keywords

Comments

A020461 and A020466 are subsequences. - Vincenzo Librandi, Jul 30 2015

Crossrefs

Cf. Primes that contain only the digits (3,4,k): A199340 (k=0), A199341 (k=1), A199342 (k=2), A199345 (k=5), A199346 (k=6), A199347 (k=7), A199348 (k=8).

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^5) | Set(Intseq(p)) subset [3, 4, 9]]; // Vincenzo Librandi, Jul 30 2015
  • Mathematica
    Select[Prime[Range[2 10^4]], Complement[IntegerDigits[#], {3, 4, 9}]=={} &] (* Vincenzo Librandi, Jul 30 2015 *)
    Select[Flatten[Table[FromDigits/@Tuples[{3,4,9},n],{n,5}]],PrimeQ] (* Harvey P. Dale, May 02 2023 *)
  • PARI
    a(n, list=0, L=[3,4,9], reqpal=0)={my(t); for(d=1, 1e9, u=vector(d, i, 10^(d-i))~; forvec(v=vector(d, i, [1+(i==1&!L[1]), #L]), isprime(t=vecextract(L,v)*u) || next; reqpal && !isprime(A004086(t)) && next; list && print1(t", "); n--||return(t)))}
    

A260223 Primes having only {3, 5, 0} as digits.

Original entry on oeis.org

3, 5, 53, 353, 503, 3533, 5003, 5303, 5333, 5503, 30553, 33053, 33353, 33503, 33533, 35053, 35353, 35533, 50033, 50053, 50333, 50503, 53003, 53353, 53503, 55333, 303053, 303553, 305033, 305353, 305533, 330053, 333503, 333533, 335033, 350003, 350033, 350503
Offset: 1

Views

Author

Vincenzo Librandi, Jul 20 2015

Keywords

Comments

A020462 is subsequence.

Crossrefs

Cf. Primes that contain only the digits (3,5,k): this sequence (k=0), A260224 (k=1), A214703 (k=2), A199345 (k=4), A260225 (k=6), A087363 (k=7), A260226 (k=8), A260227 (k=9).
Cf. A020462.

Programs

  • Magma
    [p: p in PrimesUpTo(600000) | Set(Intseq(p)) subset [3, 5, 0]];
  • Mathematica
    Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {3, 5, 0}]=={} &]
    Select[FromDigits/@Tuples[{0,3,5},6],PrimeQ] (* Harvey P. Dale, Jul 19 2019 *)

A386056 Primes having only {0, 3, 4, 5} as digits.

Original entry on oeis.org

3, 5, 43, 53, 353, 433, 443, 503, 3343, 3433, 3533, 4003, 5003, 5303, 5333, 5443, 5503, 30403, 30553, 33053, 33343, 33353, 33403, 33503, 33533, 34033, 34303, 34403, 34543, 35053, 35353, 35533, 35543, 40343, 40433, 40543, 43003, 43403, 43543, 44053, 44453, 44533
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A199340, A199345, A260223.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 3, 4, 5]];
    
  • Maple
    f:= n-> (l-> add([0, 3, 4, 5][l[j]+1]*10^(j-1), j=1..nops(l)))(convert(n, base, 4)):
    select(isprime, [seq(f(i), i=0..695)])[];  # Alois P. Heinz, Jul 15 2025
  • Mathematica
    Select[FromDigits /@ Tuples[{0, 3, 4, 5}, n], PrimeQ]
  • PARI
    primes_with(, 1, [0, 3, 4, 5]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("0345"), 41))) # uses function/imports in A385776
    

A386105 Primes having only {1, 3, 4, 5} as digits.

Original entry on oeis.org

3, 5, 11, 13, 31, 41, 43, 53, 113, 131, 151, 311, 313, 331, 353, 431, 433, 443, 541, 1151, 1153, 1433, 1451, 1453, 1511, 1531, 1543, 1553, 3313, 3331, 3343, 3413, 3433, 3511, 3533, 3541, 4111, 4133, 4153, 4441, 4451, 4513, 5113, 5153, 5333, 5351, 5413, 5431, 5441
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199341, A199345, A260224, A260268.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 4, 5]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 4, 5}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 3, 4, 5]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1345"), 41))) # uses function/imports in A385776
    

A386139 Primes having only {2, 3, 4, 5} as digits.

Original entry on oeis.org

2, 3, 5, 23, 43, 53, 223, 233, 353, 433, 443, 523, 2243, 2333, 2423, 2543, 3253, 3323, 3343, 3433, 3533, 4243, 4253, 4423, 4523, 5233, 5323, 5333, 5443, 22343, 22433, 22453, 22543, 23333, 24223, 24443, 24533, 25243, 25253, 25343, 25423, 25453, 25523, 32233, 32323
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199342, A199345, A214703.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 5]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 5}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [2, 3, 4, 5]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("2345"), 41))) # uses function/imports in A385776
    

A386169 Primes having only {3, 4, 5, 6} as digits.

Original entry on oeis.org

3, 5, 43, 53, 353, 433, 443, 463, 563, 643, 653, 3343, 3433, 3463, 3533, 3643, 4363, 4463, 4643, 4663, 5333, 5443, 5563, 5653, 6343, 6353, 6553, 6563, 6653, 33343, 33353, 33533, 33563, 34543, 35353, 35363, 35533, 35543, 36343, 36353, 36433, 36563, 36643, 36653
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A199345, A199346, A260225.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 6]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 6}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [3, 4, 5, 6]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("3456"), 41))) # uses function/imports in A385776
    

A386170 Primes having only {3, 4, 5, 7} as digits.

Original entry on oeis.org

3, 5, 7, 37, 43, 47, 53, 73, 337, 347, 353, 373, 433, 443, 457, 547, 557, 577, 733, 743, 757, 773, 3343, 3347, 3373, 3433, 3457, 3533, 3547, 3557, 3733, 4337, 4357, 4373, 4447, 4457, 4547, 4733, 5333, 5347, 5437, 5443, 5477, 5557, 5573, 5737, 5743, 7333, 7433
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A087363, A199345, A199347, A217039.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 7]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 7}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [3, 4, 5, 7]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("3457"), 41))) # uses function/imports in A385776
    

A386171 Primes having only {3, 4, 5, 8} as digits.

Original entry on oeis.org

3, 5, 43, 53, 83, 353, 383, 433, 443, 853, 883, 3343, 3433, 3533, 3583, 3833, 3853, 4483, 4583, 5333, 5443, 5483, 5843, 8353, 8443, 8543, 33343, 33353, 33533, 34483, 34543, 34583, 34843, 34883, 35353, 35533, 35543, 38333, 38453, 38543, 38833, 43543, 43853, 44383
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A199345, A199348, A260226.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 8]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 8}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [3, 4, 5, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("3458"), 41))) # uses function/imports in A385776
    

A386172 Primes having only {3, 4, 5, 9} as digits.

Original entry on oeis.org

3, 5, 43, 53, 59, 349, 353, 359, 433, 439, 443, 449, 499, 593, 599, 953, 3343, 3359, 3433, 3449, 3499, 3533, 3539, 3559, 3593, 3943, 4339, 4349, 4493, 4549, 4933, 4943, 4993, 4999, 5333, 5393, 5399, 5443, 5449, 5939, 5953, 9343, 9349, 9433, 9439, 9533, 9539, 9949
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A199345, A199349, A260227, A385793.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 9]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 9}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [3, 4, 5, 9]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("3459"), 41))) # uses function/imports in A385776
    
Showing 1-10 of 10 results.