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.

A386171 Primes having only {3, 4, 5, 8} as digits.

This page as a plain text file.
%I A386171 #6 Jul 18 2025 16:50:07
%S A386171 3,5,43,53,83,353,383,433,443,853,883,3343,3433,3533,3583,3833,3853,
%T A386171 4483,4583,5333,5443,5483,5843,8353,8443,8543,33343,33353,33533,34483,
%U A386171 34543,34583,34843,34883,35353,35533,35543,38333,38453,38543,38833,43543,43853,44383
%N A386171 Primes having only {3, 4, 5, 8} as digits.
%H A386171 Jason Bard, <a href="/A386171/b386171.txt">Table of n, a(n) for n = 1..10000</a>
%H A386171 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386171 Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 8}, n], PrimeQ], {n, 7}]]
%o A386171 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 8]];
%o A386171 (Python) print(list(islice(primes_with("3458"), 41))) # uses function/imports in A385776
%o A386171 (PARI) primes_with(, 1, [3, 4, 5, 8]) \\ uses function in A385776
%Y A386171 Supersequence of A199345, A199348, A260226.
%Y A386171 Cf. A000040, A030431, A385776.
%K A386171 nonn,base,easy
%O A386171 1,1
%A A386171 _Jason Bard_, Jul 18 2025