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.

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

This page as a plain text file.
%I A386190 #6 Jul 18 2025 21:40:42
%S A386190 5,7,47,457,487,547,557,577,587,757,787,857,877,887,4447,4457,4547,
%T A386190 4787,4877,5477,5557,5857,7457,7477,7487,7547,7577,7757,7877,8447,
%U A386190 8747,8887,44587,44777,44887,45557,45587,45757,45887,47777,47857,48487,48757,48787,48847
%N A386190 Primes having only {4, 5, 7, 8} as digits.
%H A386190 Jason Bard, <a href="/A386190/b386190.txt">Table of n, a(n) for n = 1..10000</a>
%H A386190 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386190 Flatten[Table[Select[FromDigits /@ Tuples[{4, 5, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386190 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 5, 7, 8]];
%o A386190 (Python) print(list(islice(primes_with("4578"), 41))) # uses function/imports in A385776
%o A386190 (PARI) primes_with(, 1, [4, 5, 7, 8]) \\ uses function in A385776
%Y A386190 Supersequence of A217039, A260830, A385795.
%Y A386190 Cf. A000040, A030432, A385776.
%K A386190 nonn,base,easy
%O A386190 1,1
%A A386190 _Jason Bard_, Jul 18 2025