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 A386120 #6 Jul 17 2025 07:15:38 %S A386120 5,7,11,17,41,47,71,151,157,457,541,547,557,571,577,751,757,1117,1151, %T A386120 1171,1447,1451,1471,1511,1571,1741,1747,1777,4111,4157,4177,4441, %U A386120 4447,4451,4457,4517,4547,4751,5147,5171,5417,5441,5471,5477,5557,5711,5717,5741 %N A386120 Primes having only {1, 4, 5, 7} as digits. %H A386120 Jason Bard, <a href="/A386120/b386120.txt">Table of n, a(n) for n = 1..10000</a> %H A386120 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386120 Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 5, 7}, n], PrimeQ], {n, 7}]] %o A386120 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 5, 7]]; %o A386120 (Python) print(list(islice(primes_with("1457"), 41))) # uses function/imports in A385776 %o A386120 (PARI) primes_with(, 1, [1, 4, 5, 7]) \\ uses function in A385776 %Y A386120 Supersequence of A079651, A217039, A260268, A260828. %Y A386120 Cf. A000040, A385776. %K A386120 nonn,base,easy %O A386120 1,1 %A A386120 _Jason Bard_, Jul 17 2025