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.

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

This page as a plain text file.
%I A385780 #10 Jul 13 2025 11:05:06
%S A385780 5,11,151,181,811,881,1151,1181,1511,1811,5581,5851,5881,8111,8581,
%T A385780 11551,15511,15551,15581,15881,18181,51151,51511,51551,51581,55511,
%U A385780 58111,58151,58511,81181,81551,88811,111581,115151,115811,155581,155851,158551,158581
%N A385780 Primes having only {1, 5, 8} as digits.
%H A385780 Jason Bard, <a href="/A385780/b385780.txt">Table of n, a(n) for n = 1..10000</a>
%H A385780 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385780 Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 8}, n], PrimeQ], {n, 7}]]
%o A385780 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 8]];
%o A385780 (Python) print(list(islice(primes_with("158"), 41))) # uses function/imports in A385776
%o A385780 (PARI) primes_with(, 1, [1, 5, 8]) \\ uses function in A385776
%Y A385780 Supersequence of A020453, A020456.
%Y A385780 Cf. A000040, A385776.
%K A385780 nonn,base,easy
%O A385780 1,1
%A A385780 _Jason Bard_, Jul 13 2025