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.

A385771 Primes having only {0, 7, 8} as digits.

This page as a plain text file.
%I A385771 #14 Jul 12 2025 21:20:54
%S A385771 7,787,877,887,7877,8087,8707,8807,8887,70877,78007,78707,78787,78877,
%T A385771 78887,80077,80777,87877,87887,88007,88807,700087,700877,707887,
%U A385771 708007,777787,777877,778777,780707,780877,780887,787777,787807,788077,788087,800077
%N A385771 Primes having only {0, 7, 8} as digits.
%H A385771 Jason Bard, <a href="/A385771/b385771.txt">Table of n, a(n) for n = 1..10000</a>
%H A385771 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%e A385771 7877 is a term because it is prime and only has {0,7,8} as digits.
%t A385771 Select[FromDigits/@Tuples[{0,7,8},5],PrimeQ]
%o A385771 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 7, 8]];
%o A385771 (Python) print(list(islice(primes_with("078"), 41))) # uses function/imports in A385776
%o A385771 (PARI) primes_with(, 1, [0, 7, 8]) \\ uses function in A385776
%Y A385771 Subsequence of A030432.
%Y A385771 Cf. A000040, A020470, A385776.
%K A385771 nonn,base,easy
%O A385771 1,1
%A A385771 _Jason Bard_, Jul 09 2025