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 A386158 #6 Jul 18 2025 16:03:10 %S A386158 2,7,29,47,79,97,227,229,277,449,479,499,727,797,929,947,977,997,2297, %T A386158 2447,2477,2729,2749,2777,2797,2927,2999,4229,4297,4447,4729,4799, %U A386158 4999,7229,7247,7297,7477,7499,7727,7927,7949,9227,9277,9479,9497,9749,9929,9949 %N A386158 Primes having only {2, 4, 7, 9} as digits. %H A386158 Jason Bard, <a href="/A386158/b386158.txt">Table of n, a(n) for n = 1..10000</a> %H A386158 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386158 Flatten[Table[Select[FromDigits /@ Tuples[{2, 4, 7, 9}, n], PrimeQ], {n, 7}]] %o A386158 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 4, 7, 9]]; %o A386158 (Python) print(list(islice(primes_with("2479"), 41))) # uses function/imports in A385776 %o A386158 (PARI) primes_with(, 1, [2, 4, 7, 9]) \\ uses function in A385776 %Y A386158 Supersequence of A261182, A261183, A385784, A385785. %Y A386158 Cf. A000040, A385776. %K A386158 nonn,base,easy %O A386158 1,1 %A A386158 _Jason Bard_, Jul 18 2025