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.

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

This page as a plain text file.
%I A386112 #6 Jul 17 2025 02:55:14
%S A386112 3,5,11,13,31,53,83,113,131,151,181,311,313,331,353,383,811,853,881,
%T A386112 883,1151,1153,1181,1381,1511,1531,1553,1583,1811,1831,3181,3313,3331,
%U A386112 3511,3533,3581,3583,3833,3851,3853,3881,5113,5153,5333,5351,5381,5531,5581,5813
%N A386112 Primes having only {1, 3, 5, 8} as digits.
%H A386112 Jason Bard, <a href="/A386112/b386112.txt">Table of n, a(n) for n = 1..10000</a>
%H A386112 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386112 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 5, 8}, n], PrimeQ], {n, 7}]]
%o A386112 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 5, 8]];
%o A386112 (Python) print(list(islice(primes_with("1358"), 41))) # uses function/imports in A385776
%o A386112 (PARI) primes_with(, 1, [1, 3, 5, 8]) \\ uses function in A385776
%Y A386112 Supersequence of A260224, A260226, A385778, A385780.
%Y A386112 Cf. A000040, A385776.
%K A386112 nonn,base,easy
%O A386112 1,1
%A A386112 _Jason Bard_, Jul 17 2025