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.

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

This page as a plain text file.
%I A386165 #6 Jul 18 2025 16:03:35
%S A386165 2,7,67,227,277,677,727,787,827,877,887,2267,2287,2677,2687,2767,2777,
%T A386165 2887,6277,6287,6827,7687,7727,7867,7877,8287,8627,8677,8867,8887,
%U A386165 22277,22727,22777,22787,22877,26227,26267,26627,26687,26777,27277,27767,27827,28277
%N A386165 Primes having only {2, 6, 7, 8} as digits.
%H A386165 Jason Bard, <a href="/A386165/b386165.txt">Table of n, a(n) for n = 1..10000</a>
%H A386165 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386165 Flatten[Table[Select[FromDigits /@ Tuples[{2, 6, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386165 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 6, 7, 8]];
%o A386165 (Python) print(list(islice(primes_with("2678"), 41))) # uses function/imports in A385776
%o A386165 (PARI) primes_with(, 1, [2, 6, 7, 8]) \\ uses function in A385776
%Y A386165 Supersequence of A385787, A385789, A385799.
%Y A386165 Cf. A000040, A030432, A385776.
%K A386165 nonn,base,easy
%O A386165 1,1
%A A386165 _Jason Bard_, Jul 18 2025