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 A386132 #6 Jul 17 2025 19:36:38 %S A386132 5,7,11,17,71,151,157,181,557,571,577,587,751,757,787,811,857,877,881, %T A386132 887,1117,1151,1171,1181,1187,1511,1571,1777,1787,1811,1871,1877,5171, %U A386132 5557,5581,5711,5717,5851,5857,5881,7151,7177,7187,7517,7577,7717,7757,7817 %N A386132 Primes having only {1, 5, 7, 8} as digits. %H A386132 Jason Bard, <a href="/A386132/b386132.txt">Table of n, a(n) for n = 1..10000</a> %H A386132 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386132 Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 7, 8}, n], PrimeQ], {n, 7}]] %o A386132 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 7, 8]]; %o A386132 (Python) print(list(islice(primes_with("1578"), 41))) # uses function/imports in A385776 %o A386132 (PARI) primes_with(, 1, [1, 5, 7, 8]) \\ uses function in A385776 %Y A386132 Supersequence of A260828, A260830, A260892, A385780. %Y A386132 Cf. A000040, A385776. %K A386132 nonn,base,easy %O A386132 1,1 %A A386132 _Jason Bard_, Jul 17 2025