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 A386097 #6 Jul 17 2025 00:49:46 %S A386097 2,5,11,151,181,211,251,281,521,811,821,881,1151,1181,1511,1811,2111, %T A386097 2221,2251,2281,2521,2551,2851,5281,5521,5581,5821,5851,5881,8111, %U A386097 8221,8521,8581,8821,11251,11551,11821,12211,12251,12281,12511,12821,15121,15511,15551 %N A386097 Primes having only {1, 2, 5, 8} as digits. %H A386097 Jason Bard, <a href="/A386097/b386097.txt">Table of n, a(n) for n = 1..10000</a> %H A386097 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386097 Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 5, 8}, n], PrimeQ], {n, 7}]] %o A386097 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 5, 8]]; %o A386097 (Python) print(list(islice(primes_with("1258"), 41))) # uses function/imports in A385776 %o A386097 (PARI) primes_with(, 1, [1, 2, 5, 8]) \\ uses function in A385776 %Y A386097 Supersequence of A385773, A385775, A385780. %Y A386097 Cf. A000040, A030430, A385776. %K A386097 nonn,base,easy %O A386097 1,1 %A A386097 _Jason Bard_, Jul 17 2025