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.

This page as a plain text file.
%I A385768 #16 Jul 12 2025 21:20:38
%S A385768 409,449,499,4049,4099,4409,4909,4999,9049,9949,40009,40099,40499,
%T A385768 40949,44449,44909,49009,49409,49499,49999,90499,94009,94049,94099,
%U A385768 94949,94999,99409,400009,400409,400949,404009,404099,404449,409099,409499,409909,409999
%N A385768 Primes having only {0, 4, 9} as digits.
%H A385768 Jason Bard, <a href="/A385768/b385768.txt">Table of n, a(n) for n = 1..10000</a>
%H A385768 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%e A385768 4099 is a term because it is prime, and it only contains {0,4,9}.
%t A385768 Select[FromDigits/@Tuples[{0,4,9},5],PrimeQ]
%o A385768 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 4, 9]];
%o A385768 (Python) print(list(islice(primes_with("049"), 41))) # uses function/imports in A385776
%o A385768 (PARI) primes_with(, 1, [0, 4, 9]) \\ uses function in A385776
%Y A385768 Cf. A000040, A020466, A385776.
%K A385768 nonn,base,easy
%O A385768 1,1
%A A385768 _Jason Bard_, Jul 09 2025