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 A386039 #6 Jul 15 2025 18:03:53 %S A386039 7,11,17,19,71,79,97,101,107,109,179,191,197,199,701,709,719,797,907, %T A386039 911,919,971,977,991,997,1009,1019,1091,1097,1109,1117,1171,1709,1777, %U A386039 1901,1907,1979,1997,1999,7001,7019,7079,7109,7177,7717,7901,7907,7919,9001 %N A386039 Primes having only {0, 1, 7, 9} as digits. %H A386039 Jason Bard, <a href="/A386039/b386039.txt">Table of n, a(n) for n = 1..10000</a> %H A386039 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386039 Select[FromDigits /@ Tuples[{0, 1, 7, 9}, n], PrimeQ] %o A386039 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 7, 9]]; %o A386039 (Python) print(list(islice(primes_with("0179"), 41))) # uses function/imports in A385776 %o A386039 (PARI) primes_with(, 1, [0, 1, 7, 9]) \\ uses function in A385776 %Y A386039 Supersequence of A199327, A199329, A260893. %Y A386039 Cf. A000040, A385776. %K A386039 nonn,base,easy %O A386039 1,1 %A A386039 _Jason Bard_, Jul 15 2025