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 A386049 #7 Jul 15 2025 21:16:34 %S A386049 2,5,7,227,257,277,557,577,727,757,2027,2207,2557,2707,2777,5077,5227, %T A386049 5507,5527,5557,7027,7057,7207,7507,7577,7727,7757,20507,20707,22027, %U A386049 22277,22727,22777,25057,25577,27077,27277,27527,50077,50207,50227,50527,50707,50777 %N A386049 Primes having only {0, 2, 5, 7} as digits. %C A386049 Primes with decimal digits only in the set {0,2} mod 5. %H A386049 Jason Bard, <a href="/A386049/b386049.txt">Table of n, a(n) for n = 1..10000</a> %H A386049 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386049 Select[FromDigits /@ Tuples[{0, 2, 5, 7}, n], PrimeQ] %o A386049 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 5, 7]]; %o A386049 (Python) print(list(islice(primes_with("0257"), 41))) # uses function/imports in A385776 %o A386049 (PARI) primes_with(, 1, [0, 2, 5, 7]) \\ uses function in A385776 %Y A386049 Supersequence of A214705, A260827, A261267. %Y A386049 Cf. A000040, A030432, A385776. %K A386049 nonn,base,easy %O A386049 1,1 %A A386049 _Jason Bard_, Jul 15 2025