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

A260266 Primes having only {0, 1, 4} as digits.

Original entry on oeis.org

11, 41, 101, 401, 4001, 4111, 4441, 10111, 10141, 11411, 14011, 14401, 14411, 40111, 41011, 41141, 41411, 44041, 44101, 44111, 100411, 101111, 101141, 101411, 110441, 114001, 114041, 140111, 140401, 140411, 141041, 141101, 400441, 401101, 401411, 404011
Offset: 1

Views

Author

Vincenzo Librandi, Jul 22 2015

Keywords

Comments

A020449 and A020452 are subsequences.
All terms end with a digit "1". - M. F. Hasler, Jul 26 2015

Crossrefs

Primes that contain only digits among {1,4,k}: this sequence (k=0), A260267 (k=2), A199341 (k=3), A260268 (k=5), A260269 (k=6), A079651 (k=7), A260270 (k=8), A260271 (k=9).

Programs

  • Magma
    [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 0]];
    
  • Mathematica
    Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {1, 4, 0}]=={} &]
  • PARI
    A260266(n=50,show=0)={for(d=1,1e9,my(t,u=vector(d,i,10^(d-i))~);forvec(v=vector(d,i,[i==1||i==d,1+(iM. F. Hasler, Jul 25 2015

A386027 Primes having only {0, 1, 4, 5} as digits.

Original entry on oeis.org

5, 11, 41, 101, 151, 401, 541, 1051, 1151, 1451, 1511, 4001, 4051, 4111, 4441, 4451, 5011, 5051, 5101, 5441, 5501, 10111, 10141, 10151, 10501, 11411, 11551, 14011, 14051, 14401, 14411, 14551, 15101, 15401, 15451, 15511, 15541, 15551, 40111, 40151, 41011, 41051
Offset: 1

Views

Author

Jason Bard, Jul 14 2025

Keywords

Crossrefs

Supersequence of A199325, A260266, A260268.

Programs

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

A386091 Primes having only {1, 2, 4, 5} as digits.

Original entry on oeis.org

2, 5, 11, 41, 151, 211, 241, 251, 421, 521, 541, 1151, 1451, 1511, 2111, 2141, 2221, 2251, 2411, 2441, 2521, 2551, 4111, 4211, 4241, 4421, 4441, 4451, 5441, 5521, 11251, 11411, 11551, 12211, 12241, 12251, 12421, 12451, 12511, 12541, 14221, 14251, 14411, 14551
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A260267, A260268, A385773.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 4, 5]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 4, 5}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 2, 4, 5]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1245"), 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
    

A386119 Primes having only {1, 4, 5, 6} as digits.

Original entry on oeis.org

5, 11, 41, 61, 151, 461, 541, 641, 661, 1151, 1451, 1511, 4111, 4441, 4451, 4561, 4651, 5441, 5641, 5651, 6151, 6451, 6551, 6661, 11161, 11411, 11551, 14411, 14461, 14551, 14561, 15161, 15451, 15461, 15511, 15541, 15551, 15641, 15661, 16111, 16141, 16411, 16451
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260268, A260269, A385779.

Programs

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

A386120 Primes having only {1, 4, 5, 7} as digits.

Original entry on oeis.org

5, 7, 11, 17, 41, 47, 71, 151, 157, 457, 541, 547, 557, 571, 577, 751, 757, 1117, 1151, 1171, 1447, 1451, 1471, 1511, 1571, 1741, 1747, 1777, 4111, 4157, 4177, 4441, 4447, 4451, 4457, 4517, 4547, 4751, 5147, 5171, 5417, 5441, 5471, 5477, 5557, 5711, 5717, 5741
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A079651, A217039, A260268, A260828.

Programs

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

A386121 Primes having only {1, 4, 5, 8} as digits.

Original entry on oeis.org

5, 11, 41, 151, 181, 541, 811, 881, 1151, 1181, 1451, 1481, 1511, 1811, 4111, 4441, 4451, 4481, 5441, 5581, 5851, 5881, 8111, 8581, 11411, 11551, 14411, 14551, 14851, 15451, 15511, 15541, 15551, 15581, 15881, 18181, 18451, 18481, 18541, 41141, 41411, 41851, 44111
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260268, A260270, A385780.

Programs

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

A386122 Primes having only {1, 4, 5, 9} as digits.

Original entry on oeis.org

5, 11, 19, 41, 59, 149, 151, 191, 199, 419, 449, 491, 499, 541, 599, 911, 919, 941, 991, 1151, 1451, 1459, 1499, 1511, 1549, 1559, 1949, 1951, 1999, 4111, 4159, 4441, 4451, 4519, 4549, 4591, 4919, 4951, 4999, 5119, 5419, 5441, 5449, 5519, 5591, 9151, 9199, 9419
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260268, A260271, A385781, A385793.

Programs

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