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.

A385778 Primes having only {1, 3, 8} as digits.

This page as a plain text file.
%I A385778 #8 Jul 13 2025 11:05:20
%S A385778 3,11,13,31,83,113,131,181,311,313,331,383,811,881,883,1181,1381,1811,
%T A385778 1831,3181,3313,3331,3833,3881,8111,8311,8831,11113,11131,11311,11383,
%U A385778 11813,11831,11833,13183,13313,13331,13381,13831,13883,18131,18133,18181,18311
%N A385778 Primes having only {1, 3, 8} as digits.
%H A385778 Jason Bard, <a href="/A385778/b385778.txt">Table of n, a(n) for n = 1..10000</a>
%H A385778 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385778 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 8}, n], PrimeQ], {n, 7}]]
%o A385778 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 8]];
%o A385778 (Python) print(list(islice(primes_with("138"), 41))) # uses function/imports in A385776
%o A385778 (PARI) primes_with(, 1, [1, 3, 8]) \\ uses function in A385776
%Y A385778 Supersequence of A020451, A020456, A020464.
%Y A385778 Cf. A000040, A385776.
%K A385778 nonn,base,easy
%O A385778 1,1
%A A385778 _Jason Bard_, Jul 13 2025