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 A386121 #7 Jul 17 2025 07:15:48 %S A386121 5,11,41,151,181,541,811,881,1151,1181,1451,1481,1511,1811,4111,4441, %T A386121 4451,4481,5441,5581,5851,5881,8111,8581,11411,11551,14411,14551, %U A386121 14851,15451,15511,15541,15551,15581,15881,18181,18451,18481,18541,41141,41411,41851,44111 %N A386121 Primes having only {1, 4, 5, 8} as digits. %H A386121 Jason Bard, <a href="/A386121/b386121.txt">Table of n, a(n) for n = 1..10000</a> %H A386121 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386121 Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 5, 8}, n], PrimeQ], {n, 7}]] %o A386121 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 5, 8]]; %o A386121 (Python) print(list(islice(primes_with("1458"), 41))) # uses function/imports in A385776 %o A386121 (PARI) primes_with(, 1, [1, 4, 5, 8]) \\ uses function in A385776 %Y A386121 Supersequence of A260268, A260270, A385780. %Y A386121 Cf. A000040, A030430, A385776. %K A386121 nonn,base,easy %O A386121 1,1 %A A386121 _Jason Bard_, Jul 17 2025