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.

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

Original entry on oeis.org

7, 787, 877, 887, 7877, 8087, 8707, 8807, 8887, 70877, 78007, 78707, 78787, 78877, 78887, 80077, 80777, 87877, 87887, 88007, 88807, 700087, 700877, 707887, 708007, 777787, 777877, 778777, 780707, 780877, 780887, 787777, 787807, 788077, 788087, 800077
Offset: 1

Views

Author

Jason Bard, Jul 09 2025

Keywords

Examples

			7877 is a term because it is prime and only has {0,7,8} as digits.
		

Crossrefs

Subsequence of A030432.

Programs

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