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 A386168 #6 Jul 18 2025 16:50:18 %S A386168 2,7,29,79,89,97,227,229,277,727,787,797,827,829,877,887,929,977,997, %T A386168 2287,2297,2729,2777,2789,2797,2879,2887,2897,2927,2999,7229,7297, %U A386168 7727,7789,7829,7877,7879,7927,8287,8297,8779,8887,8929,8999,9227,9277,9787,9829 %N A386168 Primes having only {2, 7, 8, 9} as digits. %H A386168 Jason Bard, <a href="/A386168/b386168.txt">Table of n, a(n) for n = 1..10000</a> %H A386168 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386168 Flatten[Table[Select[FromDigits /@ Tuples[{2, 7, 8, 9}, n], PrimeQ], {n, 7}]] %o A386168 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 7, 8, 9]]; %o A386168 (Python) print(list(islice(primes_with("2789"), 41))) # uses function/imports in A385776 %o A386168 (PARI) primes_with(, 1, [2, 7, 8, 9]) \\ uses function in A385776 %Y A386168 Supersequence of A106110, A261182, A385789, A385790. %Y A386168 Cf. A000040, A385776. %K A386168 nonn,base,easy %O A386168 1,1 %A A386168 _Jason Bard_, Jul 18 2025