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 A386070 #6 Jul 16 2025 05:29:42 %S A386070 5,7,47,457,547,557,577,757,4007,4057,4447,4457,4507,4547,5077,5407, %T A386070 5477,5507,5557,7057,7457,7477,7507,7547,7577,7757,40507,40577,44507, %U A386070 44777,45007,45077,45557,45707,45757,47057,47407,47507,47777,50047,50077,50707,50777 %N A386070 Primes having only {0, 4, 5, 7} as digits. %H A386070 Jason Bard, <a href="/A386070/b386070.txt">Table of n, a(n) for n = 1..10000</a> %H A386070 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386070 Select[FromDigits /@ Tuples[{0, 4, 5, 7}, n], PrimeQ] %o A386070 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 4, 5, 7]]; %o A386070 (Python) print(list(islice(primes_with("0457"), 41))) # uses function/imports in A385776 %o A386070 (PARI) primes_with(, 1, [0, 4, 5, 7]) \\ uses function in A385776 %Y A386070 Supersequence of A217039, A260827, A384449. %Y A386070 Cf. A000040, A030432, A385776. %K A386070 nonn,base,easy %O A386070 1,1 %A A386070 _Jason Bard_, Jul 16 2025