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.

A385799 Primes having only {6, 7, 8} as digits.

This page as a plain text file.
%I A385799 #6 Jul 14 2025 16:42:08
%S A385799 7,67,677,787,877,887,7687,7867,7877,8677,8867,8887,66877,67777,67867,
%T A385799 68687,68767,68777,76667,76777,77687,77867,78787,78877,78887,86677,
%U A385799 86767,87767,87877,87887,88667,88867,666667,667687,667867,668677,668687,668867,677687,677767
%N A385799 Primes having only {6, 7, 8} as digits.
%H A385799 Jason Bard, <a href="/A385799/b385799.txt">Table of n, a(n) for n = 1..10000</a>
%H A385799 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385799 Flatten[Table[Select[FromDigits /@ Tuples[{6, 7, 8}, n], PrimeQ], {n, 7}]]
%o A385799 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [6, 7, 8]];
%o A385799 (Python) print(list(islice(primes_with("678"), 41))) # uses function/imports in A385776
%o A385799 (PARI) primes_with(, 1, [6, 7, 8]) \\ uses function in A385776
%Y A385799 Subsequence of A030432, A106111.
%Y A385799 Supersequence of A020469, A020470.
%Y A385799 Cf. A000040, A385776.
%K A385799 nonn,base,easy
%O A385799 1,1
%A A385799 _Jason Bard_, Jul 14 2025