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

A386075 Primes having only {0, 4, 7, 9} as digits.

Original entry on oeis.org

7, 47, 79, 97, 409, 449, 479, 499, 709, 797, 907, 947, 977, 997, 4007, 4049, 4079, 4099, 4409, 4447, 4799, 4909, 4999, 7079, 7477, 7499, 7907, 7949, 9007, 9049, 9479, 9497, 9749, 9907, 9949, 40009, 40099, 40499, 40709, 40949, 44449, 44497, 44777, 44797, 44909
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A261181, A261183, A384449, A385768.

Programs

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

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
    

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

Original entry on oeis.org

3, 7, 37, 43, 47, 73, 307, 337, 347, 373, 433, 443, 733, 743, 773, 3037, 3307, 3343, 3347, 3373, 3407, 3433, 3733, 4003, 4007, 4073, 4337, 4373, 4447, 4703, 4733, 7043, 7307, 7333, 7433, 7477, 7703, 30047, 30307, 30347, 30403, 30703, 30707, 30773, 33037, 33073
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A199340, A199347, A260378, A384449.

Programs

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

A386070 Primes having only {0, 4, 5, 7} as digits.

Original entry on oeis.org

5, 7, 47, 457, 547, 557, 577, 757, 4007, 4057, 4447, 4457, 4507, 4547, 5077, 5407, 5477, 5507, 5557, 7057, 7457, 7477, 7507, 7547, 7577, 7757, 40507, 40577, 44507, 44777, 45007, 45077, 45557, 45707, 45757, 47057, 47407, 47507, 47777, 50047, 50077, 50707, 50777
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A217039, A260827, A384449.

Programs

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

A386072 Primes having only {0, 4, 6, 7} as digits.

Original entry on oeis.org

7, 47, 67, 467, 607, 647, 677, 4007, 4447, 6007, 6047, 6067, 6607, 7477, 7607, 44647, 44777, 46447, 46477, 46747, 47407, 47777, 60077, 60607, 60647, 64007, 64067, 64667, 64747, 66047, 66067, 66467, 67447, 67477, 67607, 67777, 70067, 70607, 70667, 74047, 74077
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Subsequence of A030432.
Supersequence of A384449, A385770, A385794.

Programs

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

A386074 Primes having only {0, 4, 7, 8} as digits.

Original entry on oeis.org

7, 47, 487, 787, 877, 887, 4007, 4447, 4787, 4877, 7477, 7487, 7877, 8087, 8447, 8707, 8747, 8807, 8887, 40087, 40487, 40787, 40847, 44087, 44777, 44887, 47087, 47407, 47777, 47807, 48407, 48487, 48787, 48847, 70487, 70877, 74047, 74077, 74707, 74747, 74887, 77047
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Subsequence of A030432.
Supersequence of A384449, A385771, A385795.

Programs

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