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 A386038 #6 Jul 15 2025 18:03:58 %S A386038 7,11,17,71,101,107,181,701,787,811,877,881,887,1087,1117,1171,1181, %T A386038 1187,1777,1787,1801,1811,1871,1877,7001,7177,7187,7717,7817,7877, %U A386038 8011,8017,8081,8087,8101,8111,8117,8171,8707,8807,8887,10007,10111,10177,10181,10711 %N A386038 Primes having only {0, 1, 7, 8} as digits. %H A386038 Jason Bard, <a href="/A386038/b386038.txt">Table of n, a(n) for n = 1..10000</a> %H A386038 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386038 Select[FromDigits /@ Tuples[{0, 1, 7, 8}, n], PrimeQ] %o A386038 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 7, 8]]; %o A386038 (Python) print(list(islice(primes_with("0178"), 41))) # uses function/imports in A385776 %o A386038 (PARI) primes_with(, 1, [0, 1, 7, 8]) \\ uses function in A385776 %Y A386038 Supersequence of A061247, A199327, A260892. %Y A386038 Cf. A000040, A385776. %K A386038 nonn,base,easy %O A386038 1,1 %A A386038 _Jason Bard_, Jul 15 2025