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.

A385791 Primes having only {3, 6, 8} as digits.

This page as a plain text file.
%I A385791 #6 Jul 14 2025 00:26:33
%S A385791 3,83,383,683,863,883,3833,3863,6833,6863,6883,8363,8663,8863,33863,
%T A385791 36383,36683,36833,38333,38833,63863,66383,66683,66863,66883,68633,
%U A385791 68683,68863,83383,83663,83833,88663,88883,333383,336683,336863,338383,338683,363683,363833
%N A385791 Primes having only {3, 6, 8} as digits.
%H A385791 Jason Bard, <a href="/A385791/b385791.txt">Table of n, a(n) for n = 1..10000</a>
%H A385791 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385791 Flatten[Table[Select[FromDigits /@ Tuples[{3, 6, 8}, n], PrimeQ], {n, 7}]]
%o A385791 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 6, 8]];
%o A385791 (Python) print(list(islice(primes_with("368"), 41))) # uses function/imports in A385776
%o A385791 (PARI) primes_with(, 1, [3, 6, 8]) \\ uses function in A385776
%Y A385791 Subsequence of A030431.
%Y A385791 Supersequence of A020464.
%Y A385791 Cf. A000040, A385776.
%K A385791 nonn,base,easy
%O A385791 1,1
%A A385791 _Jason Bard_, Jul 13 2025