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.

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

Original entry on oeis.org

409, 449, 499, 4049, 4099, 4409, 4909, 4999, 9049, 9949, 40009, 40099, 40499, 40949, 44449, 44909, 49009, 49409, 49499, 49999, 90499, 94009, 94049, 94099, 94949, 94999, 99409, 400009, 400409, 400949, 404009, 404099, 404449, 409099, 409499, 409909, 409999
Offset: 1

Views

Author

Jason Bard, Jul 09 2025

Keywords

Examples

			4099 is a term because it is prime, and it only contains {0,4,9}.
		

Crossrefs

Programs

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