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.

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

This page as a plain text file.
%I A386074 #6 Jul 16 2025 05:30:05
%S A386074 7,47,487,787,877,887,4007,4447,4787,4877,7477,7487,7877,8087,8447,
%T A386074 8707,8747,8807,8887,40087,40487,40787,40847,44087,44777,44887,47087,
%U A386074 47407,47777,47807,48407,48487,48787,48847,70487,70877,74047,74077,74707,74747,74887,77047
%N A386074 Primes having only {0, 4, 7, 8} as digits.
%H A386074 Jason Bard, <a href="/A386074/b386074.txt">Table of n, a(n) for n = 1..10000</a>
%H A386074 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386074 Select[FromDigits /@ Tuples[{0, 4, 7, 8}, n], PrimeQ]
%o A386074 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 4, 7, 8]];
%o A386074 (Python) print(list(islice(primes_with("0478"), 41))) # uses function/imports in A385776
%o A386074 (PARI) primes_with(, 1, [0, 4, 7, 8]) \\ uses function in A385776
%Y A386074 Subsequence of A030432.
%Y A386074 Supersequence of A384449, A385771, A385795.
%Y A386074 Cf. A000040, A385776.
%K A386074 nonn,base,easy
%O A386074 1,1
%A A386074 _Jason Bard_, Jul 16 2025