cp's OEIS Frontend

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.

A386199 Primes having only {5, 7, 8, 9} as digits.

This page as a plain text file.
%I A386199 #6 Jul 18 2025 23:50:58
%S A386199 5,7,59,79,89,97,557,577,587,599,757,787,797,857,859,877,887,977,997,
%T A386199 5557,5779,5857,5879,5897,5987,7559,7577,7589,7757,7759,7789,7877,
%U A386199 7879,8597,8599,8779,8887,8999,9587,9787,9857,9859,9887,55579,55589,55787,55799,55889
%N A386199 Primes having only {5, 7, 8, 9} as digits.
%H A386199 Jason Bard, <a href="/A386199/b386199.txt">Table of n, a(n) for n = 1..10000</a>
%H A386199 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386199 Flatten[Table[Select[FromDigits /@ Tuples[{5, 7, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386199 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [5, 7, 8, 9]];
%o A386199 (Python) print(list(islice(primes_with("5789"), 41))) # uses function/imports in A385776
%o A386199 (PARI) primes_with(, 1, [5, 7, 8, 9]) \\ uses function in A385776
%Y A386199 Supersequence of A106110, A260830, A260831, A385798.
%Y A386199 Cf. A000040, A106111, A385776.
%K A386199 nonn,base,easy
%O A386199 1,1
%A A386199 _Jason Bard_, Jul 18 2025