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 A386107 #6 Jul 17 2025 02:54:57 %S A386107 3,7,11,13,17,31,37,41,43,47,71,73,113,131,137,173,311,313,317,331, %T A386107 337,347,373,431,433,443,733,743,773,1117,1171,1373,1433,1447,1471, %U A386107 1733,1741,1747,1777,3137,3313,3331,3343,3347,3371,3373,3413,3433,3733,4111,4133 %N A386107 Primes having only {1, 3, 4, 7} as digits. %H A386107 Jason Bard, <a href="/A386107/b386107.txt">Table of n, a(n) for n = 1..10000</a> %H A386107 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386107 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 4, 7}, n], PrimeQ], {n, 7}]] %o A386107 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 4, 7]]; %o A386107 (Python) print(list(islice(primes_with("1347"), 41))) # uses function/imports in A385776 %o A386107 (PARI) primes_with(, 1, [1, 3, 4, 7]) \\ uses function in A385776 %Y A386107 Supersequence of A079651, A199341, A199347, A260379. %Y A386107 Cf. A000040, A385776. %K A386107 nonn,base,easy %O A386107 1,1 %A A386107 _Jason Bard_, Jul 17 2025