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 A385773 #14 Jul 12 2025 21:21:02 %S A385773 2,5,11,151,211,251,521,1151,1511,2111,2221,2251,2521,2551,5521,11251, %T A385773 11551,12211,12251,12511,15121,15511,15551,21121,21211,21221,21521, %U A385773 22111,22511,25111,25121,51151,51511,51521,51551,52121,52511,55511,111121,111211 %N A385773 Primes having only {1, 2, 5} as digits. %H A385773 Jason Bard, <a href="/A385773/b385773.txt">Table of n, a(n) for n = 1..10000</a> %H A385773 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A385773 Flatten[Table[ Select[FromDigits /@ Tuples[{1, 2, 5}, n], PrimeQ], {n, 7}]] %o A385773 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 5]]; %o A385773 (Python) print(list(islice(primes_with("125"), 41))) # uses function/imports in A385776 %o A385773 (PARI) primes_with(, 1, [1, 2, 5]) \\ uses function in A385776 %Y A385773 Supersequence of A024050, A020453. %Y A385773 Cf. A000040, A385776. %K A385773 nonn,base,easy %O A385773 1,1 %A A385773 _Jason Bard_, Jul 09 2025