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.

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

This page as a plain text file.
%I A386134 #6 Jul 17 2025 19:36:46
%S A386134 5,11,19,59,89,151,181,191,199,599,811,859,881,911,919,991,1151,1181,
%T A386134 1511,1559,1811,1889,1951,1999,5119,5189,5519,5581,5591,5851,5881,
%U A386134 5981,8111,8191,8581,8599,8819,8951,8999,9151,9181,9199,9511,9551,9811,9851,9859
%N A386134 Primes having only {1, 5, 8, 9} as digits.
%H A386134 Jason Bard, <a href="/A386134/b386134.txt">Table of n, a(n) for n = 1..10000</a>
%H A386134 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386134 Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386134 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 8, 9]];
%o A386134 (Python) print(list(islice(primes_with("1589"), 41))) # uses function/imports in A385776
%o A386134 (PARI) primes_with(, 1, [1, 5, 8, 9]) \\ uses function in A385776
%Y A386134 Supersequence of A385780, A385781, A385783, A385798.
%Y A386134 Cf. A000040, A385776.
%K A386134 nonn,base,easy
%O A386134 1,1
%A A386134 _Jason Bard_, Jul 17 2025