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

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

Original entry on oeis.org

3, 43, 433, 443, 463, 643, 3343, 3433, 3463, 3643, 4003, 4363, 4463, 4603, 4643, 4663, 6043, 6343, 30403, 30643, 33343, 33403, 34033, 34303, 34403, 34603, 36343, 36433, 36643, 40063, 40343, 40433, 43003, 43063, 43403, 43633, 44633, 46633, 46643, 46663, 60343
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Subsequence of A030431.
Supersequence of A199340, A199346.

Programs

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

A386106 Primes having only {1, 3, 4, 6} as digits.

Original entry on oeis.org

3, 11, 13, 31, 41, 43, 61, 113, 131, 163, 311, 313, 331, 431, 433, 443, 461, 463, 613, 631, 641, 643, 661, 1163, 1361, 1433, 1613, 1663, 3163, 3313, 3331, 3343, 3361, 3413, 3433, 3461, 3463, 3613, 3631, 3643, 4111, 4133, 4363, 4441, 4463, 4643, 4663, 6113, 6131
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199341, A199346, A260269, A385777.

Programs

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

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
    

A386173 Primes having only {3, 4, 6, 7} as digits.

Original entry on oeis.org

3, 7, 37, 43, 47, 67, 73, 337, 347, 367, 373, 433, 443, 463, 467, 643, 647, 673, 677, 733, 743, 773, 3343, 3347, 3373, 3433, 3463, 3467, 3637, 3643, 3673, 3677, 3733, 3767, 4337, 4363, 4373, 4447, 4463, 4637, 4643, 4663, 4673, 4733, 6337, 6343, 6367, 6373, 6473
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A199346, A199347, A260380, A385794.

Programs

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

A386174 Primes having only {3, 4, 6, 8} as digits.

Original entry on oeis.org

3, 43, 83, 383, 433, 443, 463, 643, 683, 863, 883, 3343, 3433, 3463, 3643, 3833, 3863, 4363, 4463, 4483, 4643, 4663, 6343, 6833, 6863, 6883, 8363, 8443, 8663, 8863, 33343, 33863, 34483, 34843, 34883, 36343, 36383, 36433, 36643, 36683, 36833, 38333, 38833, 43633
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A199346, A199348, A385791.

Programs

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

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

Original entry on oeis.org

3, 43, 349, 433, 439, 443, 449, 463, 499, 643, 3343, 3433, 3449, 3463, 3469, 3499, 3643, 3943, 4339, 4349, 4363, 4463, 4493, 4639, 4643, 4649, 4663, 4933, 4943, 4969, 4993, 4999, 6343, 6449, 6469, 6949, 9343, 9349, 9433, 9439, 9463, 9643, 9649, 9949, 33343, 33349
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A107666, A199346, A199349.

Programs

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