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.

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

This page as a plain text file.
%I A386135 #6 Jul 17 2025 19:36:49
%S A386135 7,11,17,61,67,71,167,181,617,661,677,761,787,811,877,881,887,1117,
%T A386135 1171,1181,1187,1667,1777,1787,1811,1861,1867,1871,1877,6661,6761,
%U A386135 6781,6871,7177,7187,7681,7687,7717,7817,7867,7877,8111,8117,8161,8167,8171,8677,8681
%N A386135 Primes having only {1, 6, 7, 8} as digits.
%H A386135 Jason Bard, <a href="/A386135/b386135.txt">Table of n, a(n) for n = 1..10000</a>
%H A386135 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386135 Flatten[Table[Select[FromDigits /@ Tuples[{1, 6, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386135 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 6, 7, 8]];
%o A386135 (Python) print(list(islice(primes_with("1678"), 41))) # uses function/imports in A385776
%o A386135 (PARI) primes_with(, 1, [1, 6, 7, 8]) \\ uses function in A385776
%Y A386135 Supersequence of A260891, A260892, A385782, A385799.
%Y A386135 Cf. A000040, A385776.
%K A386135 nonn,base,easy
%O A386135 1,1
%A A386135 _Jason Bard_, Jul 17 2025