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.

A385775 Primes having only {1, 2, 8} as digits.

This page as a plain text file.
%I A385775 #13 Jul 12 2025 21:20:15
%S A385775 2,11,181,211,281,811,821,881,1181,1811,2111,2221,2281,8111,8221,8821,
%T A385775 11821,12211,12281,12821,18121,18181,18211,21121,21211,21221,21821,
%U A385775 21881,22111,22811,28111,28181,28211,81181,81281,82811,88211,88811,111121
%N A385775 Primes having only {1, 2, 8} as digits.
%H A385775 Jason Bard, <a href="/A385775/b385775.txt">Table of n, a(n) for n = 1..10000</a>
%H A385775 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385775 Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 8}, n], PrimeQ], {n, 7}]]
%o A385775 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 8]];
%o A385775 (Python) print(list(islice(primes_with("128"), 41))) # uses function/imports in A385776
%o A385775 (PARI) primes_with(, 1, [1, 2, 8]) \\ uses function in A385776
%Y A385775 Supersequence of A020450, A020456.
%Y A385775 Cf. A000040, A385776.
%K A385775 nonn,base,easy
%O A385775 1,1
%A A385775 _Jason Bard_, Jul 09 2025