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

A386047 Primes having only {0, 2, 4, 7} as digits.

Original entry on oeis.org

2, 7, 47, 227, 277, 727, 2027, 2207, 2447, 2477, 2707, 2777, 4007, 4027, 4447, 7027, 7207, 7247, 7477, 7727, 20047, 20407, 20477, 20707, 20747, 22027, 22247, 22277, 22447, 22727, 22777, 24007, 24077, 24247, 24407, 27077, 27277, 27407, 27427, 40277, 40427, 42227
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A261267, A384449, A385784.

Programs

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

A386093 Primes having only {1, 2, 4, 7} as digits.

Original entry on oeis.org

2, 7, 11, 17, 41, 47, 71, 127, 211, 227, 241, 271, 277, 421, 727, 1117, 1171, 1217, 1277, 1427, 1447, 1471, 1721, 1741, 1747, 1777, 2111, 2141, 2221, 2411, 2417, 2441, 2447, 2477, 2711, 2741, 2777, 4111, 4127, 4177, 4211, 4217, 4241, 4271, 4421, 4441, 4447, 4721
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A079651, A260267, A260889, A385784.

Programs

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

A386153 Primes having only {2, 4, 5, 7} as digits.

Original entry on oeis.org

2, 5, 7, 47, 227, 257, 277, 457, 547, 557, 577, 727, 757, 2447, 2477, 2557, 2777, 4447, 4457, 4547, 5227, 5477, 5527, 5557, 7247, 7457, 7477, 7547, 7577, 7727, 7757, 22247, 22277, 22447, 22727, 22777, 24247, 24527, 24547, 25247, 25447, 25457, 25577, 25747, 27277
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A214705, A217039, A385784.

Programs

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

A386155 Primes having only {2, 4, 6, 7} as digits.

Original entry on oeis.org

2, 7, 47, 67, 227, 277, 467, 647, 677, 727, 2267, 2447, 2467, 2477, 2647, 2677, 2767, 2777, 4447, 6247, 6277, 6427, 7247, 7477, 7727, 22247, 22277, 22447, 22727, 22777, 24247, 24677, 24767, 26227, 26267, 26627, 26647, 26777, 27277, 27427, 27647, 27767, 42227
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A385784, A385787, A385794.

Programs

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

A386157 Primes having only {2, 4, 7, 8} as digits.

Original entry on oeis.org

2, 7, 47, 227, 277, 487, 727, 787, 827, 877, 887, 2287, 2447, 2477, 2777, 2887, 4447, 4787, 4877, 7247, 7477, 7487, 7727, 7877, 8287, 8447, 8747, 8887, 22247, 22277, 22447, 22727, 22777, 22787, 22877, 24247, 24847, 24877, 27277, 27427, 27487, 27827, 27847, 28277
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A385784, A385789, A385795.

Programs

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

A386158 Primes having only {2, 4, 7, 9} as digits.

Original entry on oeis.org

2, 7, 29, 47, 79, 97, 227, 229, 277, 449, 479, 499, 727, 797, 929, 947, 977, 997, 2297, 2447, 2477, 2729, 2749, 2777, 2797, 2927, 2999, 4229, 4297, 4447, 4729, 4799, 4999, 7229, 7247, 7297, 7477, 7499, 7727, 7927, 7949, 9227, 9277, 9479, 9497, 9749, 9929, 9949
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A261182, A261183, A385784, A385785.

Programs

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