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.

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

Original entry on oeis.org

5, 7, 557, 577, 757, 5077, 5507, 5557, 7057, 7507, 7577, 7757, 50077, 50707, 50777, 55057, 57077, 57557, 70507, 75557, 75577, 75707, 77557, 500057, 500777, 505777, 507077, 507557, 507757, 550007, 550577, 550757, 555077, 555557, 555707, 557057, 570077, 575077
Offset: 1

Views

Author

Vincenzo Librandi, Aug 01 2015

Keywords

Crossrefs

A020467 is a subsequence.
Cf. Primes that contain only the digits (k,5,7): this sequence (k=0), A260828 (k=1), A214705 (k=2), A087363 (k=3), A217039 (k=4), A260829 (k=6), A260830 (k=8), A260831 (k=9).
Cf. A000040.

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^6) | Set(Intseq(p)) subset [0,5,7]];
    
  • Mathematica
    Select[Prime[Range[2 10^5]], Complement[IntegerDigits[#], {0, 5, 7}]=={} &]
  • Python
    from sympy import isprime
    from sympy.utilities.iterables import multiset_permutations
    def aupton(terms):
      n, digits, alst = 0, 1, []
      while len(alst) < terms:
        mpstr = "".join(d*digits for d in "057")
        for mp in multiset_permutations(mpstr, digits):
          if mp[0] == "0": continue
          t = int("".join(mp))
          if isprime(t): alst.append(t)
          if len(alst) == terms: break
        else: digits += 1
      return alst
    print(aupton(38)) # Michael S. Branicky, May 07 2021

A386079 Primes having only {0, 5, 7, 8} as digits.

Original entry on oeis.org

5, 7, 557, 577, 587, 757, 787, 857, 877, 887, 5077, 5087, 5507, 5557, 5807, 5857, 7057, 7507, 7577, 7757, 7877, 8087, 8707, 8807, 8887, 50077, 50087, 50587, 50707, 50777, 50857, 55057, 55787, 55807, 57077, 57557, 57587, 57787, 58057, 58757, 58787, 70507, 70877
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A260827, A260830, A385771.

Programs

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

A386132 Primes having only {1, 5, 7, 8} as digits.

Original entry on oeis.org

5, 7, 11, 17, 71, 151, 157, 181, 557, 571, 577, 587, 751, 757, 787, 811, 857, 877, 881, 887, 1117, 1151, 1171, 1181, 1187, 1511, 1571, 1777, 1787, 1811, 1871, 1877, 5171, 5557, 5581, 5711, 5717, 5851, 5857, 5881, 7151, 7177, 7187, 7517, 7577, 7717, 7757, 7817
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260828, A260830, A260892, A385780.

Programs

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

A386162 Primes having only {2, 5, 7, 8} as digits.

Original entry on oeis.org

2, 5, 7, 227, 257, 277, 557, 577, 587, 727, 757, 787, 827, 857, 877, 887, 2287, 2557, 2777, 2857, 2887, 5227, 5527, 5557, 5827, 5857, 7577, 7727, 7757, 7877, 8287, 8527, 8887, 22277, 22727, 22777, 22787, 22877, 25577, 27277, 27527, 27827, 28277, 52727, 52757
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A214705, A260830, A385789.

Programs

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

A386181 Primes having only {3, 5, 7, 8} as digits.

Original entry on oeis.org

3, 5, 7, 37, 53, 73, 83, 337, 353, 373, 383, 557, 577, 587, 733, 757, 773, 787, 853, 857, 877, 883, 887, 3373, 3533, 3557, 3583, 3733, 3833, 3853, 3877, 5333, 5387, 5557, 5573, 5737, 5783, 5857, 7333, 7537, 7573, 7577, 7583, 7753, 7757, 7853, 7873, 7877, 7883
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A087363, A260226, A260381, A260830.

Programs

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

A386190 Primes having only {4, 5, 7, 8} as digits.

Original entry on oeis.org

5, 7, 47, 457, 487, 547, 557, 577, 587, 757, 787, 857, 877, 887, 4447, 4457, 4547, 4787, 4877, 5477, 5557, 5857, 7457, 7477, 7487, 7547, 7577, 7757, 7877, 8447, 8747, 8887, 44587, 44777, 44887, 45557, 45587, 45757, 45887, 47777, 47857, 48487, 48757, 48787, 48847
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A217039, A260830, A385795.

Programs

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

A386196 Primes having only {5, 6, 7, 8} as digits.

Original entry on oeis.org

5, 7, 67, 557, 577, 587, 677, 757, 787, 857, 877, 887, 5557, 5657, 5857, 5867, 6577, 6857, 7577, 7687, 7757, 7867, 7877, 8677, 8867, 8887, 55667, 55787, 56687, 56767, 56857, 57557, 57587, 57667, 57787, 58567, 58657, 58687, 58757, 58787, 65557, 65587, 65657, 65677
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A260829, A260830, A385799.

Programs

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

A386199 Primes having only {5, 7, 8, 9} as digits.

Original entry on oeis.org

5, 7, 59, 79, 89, 97, 557, 577, 587, 599, 757, 787, 797, 857, 859, 877, 887, 977, 997, 5557, 5779, 5857, 5879, 5897, 5987, 7559, 7577, 7589, 7757, 7759, 7789, 7877, 7879, 8597, 8599, 8779, 8887, 8999, 9587, 9787, 9857, 9859, 9887, 55579, 55589, 55787, 55799, 55889
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A106110, A260830, A260831, A385798.

Programs

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