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.

A385789 Primes having only {2, 7, 8} as digits.

This page as a plain text file.
%I A385789 #6 Jul 14 2025 00:26:41
%S A385789 2,7,227,277,727,787,827,877,887,2287,2777,2887,7727,7877,8287,8887,
%T A385789 22277,22727,22777,22787,22877,27277,27827,28277,72227,72277,72287,
%U A385789 72727,78277,78787,78877,78887,82727,82787,87277,87877,87887,222787,222877,227827,228887
%N A385789 Primes having only {2, 7, 8} as digits.
%H A385789 Jason Bard, <a href="/A385789/b385789.txt">Table of n, a(n) for n = 1..10000</a>
%H A385789 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385789 Flatten[Table[Select[FromDigits /@ Tuples[{2, 7, 8}, n], PrimeQ], {n, 7}]]
%o A385789 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 7, 8]];
%o A385789 (Python) print(list(islice(primes_with("278"), 41))) # uses function/imports in A385776
%o A385789 (PARI) primes_with(, 1, [2, 7, 8]) \\ uses function in A385776
%Y A385789 Supersequence of A020459, A020470.
%Y A385789 Cf. A000040, A030432, A385776.
%K A385789 nonn,base,easy
%O A385789 1,1
%A A385789 _Jason Bard_, Jul 13 2025