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 A386021 #7 Jul 14 2025 21:17:37 %S A386021 2,11,101,181,211,281,811,821,881,1021,1181,1201,1801,1811,2011,2081, %T A386021 2111,2221,2281,2801,8011,8081,8101,8111,8221,8821,10111,10181,10211, %U A386021 11801,11821,12011,12101,12211,12281,12821,18121,18181,18211,20011,20021,20101,20201 %N A386021 Primes having only {0, 1, 2, 8} as digits. %H A386021 Jason Bard, <a href="/A386021/b386021.txt">Table of n, a(n) for n = 1..10000</a> %H A386021 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386021 Select[FromDigits /@ Tuples[{0, 1, 2, 8}, n], PrimeQ] %o A386021 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 8]]; %o A386021 (Python) print(list(islice(primes_with("0128"), 41))) # uses function/imports in A385776 %o A386021 (PARI) primes_with(, 1, [0, 1, 2, 8]) \\ uses function in A385776 %Y A386021 Subsequence of A173580. %Y A386021 Supersequence of A036953, A061247, A385775. %Y A386021 Cf. A000040, A030430, A385776. %K A386021 nonn,base,easy %O A386021 1,1 %A A386021 _Jason Bard_, Jul 14 2025