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.
%I A386157 #6 Jul 18 2025 16:03:06 %S A386157 2,7,47,227,277,487,727,787,827,877,887,2287,2447,2477,2777,2887,4447, %T A386157 4787,4877,7247,7477,7487,7727,7877,8287,8447,8747,8887,22247,22277, %U A386157 22447,22727,22777,22787,22877,24247,24847,24877,27277,27427,27487,27827,27847,28277 %N A386157 Primes having only {2, 4, 7, 8} as digits. %H A386157 Jason Bard, <a href="/A386157/b386157.txt">Table of n, a(n) for n = 1..10000</a> %H A386157 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386157 Flatten[Table[Select[FromDigits /@ Tuples[{2, 4, 7, 8}, n], PrimeQ], {n, 7}]] %o A386157 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 4, 7, 8]]; %o A386157 (Python) print(list(islice(primes_with("2478"), 41))) # uses function/imports in A385776 %o A386157 (PARI) primes_with(, 1, [2, 4, 7, 8]) \\ uses function in A385776 %Y A386157 Supersequence of A385784, A385789, A385795. %Y A386157 Cf. A000040, A030432, A385776. %K A386157 nonn,base,easy %O A386157 1,1 %A A386157 _Jason Bard_, Jul 18 2025