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.

A386166 Primes having only {2, 6, 7, 9} as digits.

This page as a plain text file.
%I A386166 #6 Jul 18 2025 16:03:39
%S A386166 2,7,29,67,79,97,227,229,269,277,677,727,769,797,929,967,977,997,2267,
%T A386166 2269,2297,2677,2699,2729,2767,2777,2797,2927,2969,2999,6229,6269,
%U A386166 6277,6299,6679,6779,6967,6977,6997,7229,7297,7669,7699,7727,7927,9227,9277,9629
%N A386166 Primes having only {2, 6, 7, 9} as digits.
%H A386166 Jason Bard, <a href="/A386166/b386166.txt">Table of n, a(n) for n = 1..10000</a>
%H A386166 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386166 Flatten[Table[Select[FromDigits /@ Tuples[{2, 6, 7, 9}, n], PrimeQ], {n, 7}]]
%o A386166 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 6, 7, 9]];
%o A386166 (Python) print(list(islice(primes_with("2679"), 41))) # uses function/imports in A385776
%o A386166 (PARI) primes_with(, 1, [2, 6, 7, 9]) \\ uses function in A385776
%Y A386166 Supersequence of A261182, A261184, A385787, A385788.
%Y A386166 Cf. A000040, A385776.
%K A386166 nonn,base,easy
%O A386166 1,1
%A A386166 _Jason Bard_, Jul 18 2025