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)))}
    

A260125 Primes having only {0, 2, 3} as digits.

Original entry on oeis.org

2, 3, 23, 223, 233, 2003, 2203, 2333, 3023, 3203, 3323, 20023, 20233, 20323, 20333, 22003, 22303, 23003, 23203, 23333, 30203, 30223, 30323, 32003, 32203, 32233, 32303, 32323, 33023, 33203, 33223, 200003, 200023, 200033, 200323, 203023, 203233, 203323
Offset: 1

Views

Author

Vincenzo Librandi, Jul 17 2015

Keywords

Crossrefs

Cf. Primes that contain only the digits (2,3,k): this sequence (k=0), A062350 (k=1), A199342 (k=4), A214703 (k=5), A260126 (k=6), A214704 (k=7), A260127 (k=8), A260128 (k=9).
Cf. A020458 (a subsequence).

Programs

  • Magma
    [p: p in PrimesUpTo(300000) | Intseq(p) subset {2,3,0}];
  • Mathematica
    Select[Prime[Range[2 10^4]], Complement[IntegerDigits[#], {2, 3, 0}]=={} &]
    Select[FromDigits/@Tuples[{0,2,3},6],PrimeQ] (* Harvey P. Dale, Mar 06 2020 *)

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

Original entry on oeis.org

2, 3, 23, 43, 223, 233, 433, 443, 2003, 2203, 2243, 2333, 2423, 3023, 3203, 3323, 3343, 3433, 4003, 4243, 4423, 20023, 20233, 20323, 20333, 20443, 22003, 22303, 22343, 22433, 23003, 23203, 23333, 24023, 24043, 24203, 24223, 24443, 30203, 30223, 30323, 30403, 32003
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A199342, A260125.

Programs

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

A386085 Primes having only {1, 2, 3, 4} as digits.

Original entry on oeis.org

2, 3, 11, 13, 23, 31, 41, 43, 113, 131, 211, 223, 233, 241, 311, 313, 331, 421, 431, 433, 443, 1123, 1213, 1223, 1231, 1321, 1423, 1433, 2111, 2113, 2131, 2141, 2143, 2213, 2221, 2243, 2311, 2333, 2341, 2411, 2423, 2441, 3121, 3221, 3313, 3323, 3331, 3343, 3413
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Subsequence of A036956, A036958.
Supersequence of A062350, A199341, A199342, A260267.

Programs

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

A386140 Primes having only {2, 3, 4, 6} as digits.

Original entry on oeis.org

2, 3, 23, 43, 223, 233, 263, 433, 443, 463, 643, 2243, 2333, 2423, 2633, 2663, 3323, 3343, 3433, 3463, 3623, 3643, 4243, 4363, 4423, 4463, 4643, 4663, 6263, 6323, 6343, 22343, 22433, 22643, 23333, 23623, 23633, 23663, 24223, 24443, 24623, 26263, 26423, 26633
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199342, A199346, A260126.

Programs

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

A386141 Primes having only {2, 3, 4, 7} as digits.

Original entry on oeis.org

2, 3, 7, 23, 37, 43, 47, 73, 223, 227, 233, 277, 337, 347, 373, 433, 443, 727, 733, 743, 773, 2237, 2243, 2273, 2333, 2347, 2377, 2423, 2437, 2447, 2473, 2477, 2777, 3323, 3343, 3347, 3373, 3433, 3727, 3733, 4243, 4273, 4327, 4337, 4373, 4423, 4447, 4723, 4733
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199342, A199347, A214704, A385784.

Programs

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

A386142 Primes having only {2, 3, 4, 8} as digits.

Original entry on oeis.org

2, 3, 23, 43, 83, 223, 233, 283, 383, 433, 443, 823, 883, 2243, 2333, 2383, 2423, 2833, 2843, 3323, 3343, 3433, 3823, 3833, 4243, 4283, 4423, 4483, 8233, 8243, 8423, 8443, 22283, 22343, 22433, 22483, 23333, 23833, 24223, 24443, 28283, 28433, 28843, 32233, 32323
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199342, A199348, A260127.

Programs

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

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

Original entry on oeis.org

2, 3, 23, 29, 43, 223, 229, 233, 239, 293, 349, 433, 439, 443, 449, 499, 929, 2239, 2243, 2293, 2333, 2339, 2393, 2399, 2423, 2939, 2999, 3229, 3299, 3323, 3329, 3343, 3433, 3449, 3499, 3923, 3929, 3943, 4229, 4243, 4339, 4349, 4423, 4493, 4933, 4943, 4993, 4999
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199342, A199349, A260128, A385785.

Programs

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