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.

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

This page as a plain text file.
%I A385782 #11 Aug 27 2025 16:20:10
%S A385782 11,61,181,661,811,881,1181,1811,1861,6661,8111,8161,8681,8861,11161,
%T A385782 11681,16111,16661,16811,18181,18661,61681,61861,66161,68111,68161,
%U A385782 68611,68881,81181,81611,86111,86161,86861,88661,88681,88811,88861,111611,116681,116881
%N A385782 Primes having only {1, 6, 8} as digits.
%H A385782 Jason Bard, <a href="/A385782/b385782.txt">Table of n, a(n) for n = 1..10000</a>
%H A385782 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385782 Flatten[Table[Select[FromDigits /@ Tuples[{1, 6, 8}, n], PrimeQ], {n, 7}]]
%t A385782 Select[10Flatten[Table[FromDigits/@Tuples[{1,6,8},n],{n,5}]]+1,PrimeQ] (* _Harvey P. Dale_, Aug 27 2025 *)
%o A385782 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 6, 8]];
%o A385782 (Python) print(list(islice(primes_with("168"), 41))) # uses function/imports in A385776
%o A385782 (PARI) primes_with(, 1, [1, 6, 8]) \\ uses function in A385776
%Y A385782 Subsequence of A030430. Supersequence of A020454, A020456.
%Y A385782 Cf. A000040, A385776.
%K A385782 nonn,base,easy,changed
%O A385782 1,1
%A A385782 _Jason Bard_, Jul 13 2025