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 A386162 #6 Jul 18 2025 16:03:24 %S A386162 2,5,7,227,257,277,557,577,587,727,757,787,827,857,877,887,2287,2557, %T A386162 2777,2857,2887,5227,5527,5557,5827,5857,7577,7727,7757,7877,8287, %U A386162 8527,8887,22277,22727,22777,22787,22877,25577,27277,27527,27827,28277,52727,52757 %N A386162 Primes having only {2, 5, 7, 8} as digits. %H A386162 Jason Bard, <a href="/A386162/b386162.txt">Table of n, a(n) for n = 1..10000</a> %H A386162 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386162 Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 7, 8}, n], PrimeQ], {n, 7}]] %o A386162 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 7, 8]]; %o A386162 (Python) print(list(islice(primes_with("2578"), 41))) # uses function/imports in A385776 %o A386162 (PARI) primes_with(, 1, [2, 5, 7, 8]) \\ uses function in A385776 %Y A386162 Supersequence of A214705, A260830, A385789. %Y A386162 Cf. A000040, A030432, A385776. %K A386162 nonn,base,easy %O A386162 1,1 %A A386162 _Jason Bard_, Jul 18 2025