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.

A386081 Primes having only {0, 5, 8, 9} as digits.

This page as a plain text file.
%I A386081 #6 Jul 16 2025 21:44:39
%S A386081 5,59,89,509,599,809,859,5009,5059,5099,8009,8059,8089,8599,8999,9059,
%T A386081 9859,50599,50909,50989,55009,55589,55889,58099,58889,58909,59009,
%U A386081 59509,59809,59999,80599,80809,80909,80989,85009,85889,85909,85999,88589,89009,89599,89809
%N A386081 Primes having only {0, 5, 8, 9} as digits.
%H A386081 Jason Bard, <a href="/A386081/b386081.txt">Table of n, a(n) for n = 1..10000</a>
%H A386081 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386081 Select[FromDigits /@ Tuples[{0, 5, 8, 9}, n], PrimeQ]
%o A386081 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 5, 8, 9]];
%o A386081 (Python) print(list(islice(primes_with("0589"), 41))) # uses function/imports in A385776
%o A386081 (PARI) primes_with(, 1, [0, 5, 8, 9]) \\ uses function in A385776
%Y A386081 Supersequence of A385769, A385772, A385798.
%Y A386081 Cf. A000040, A030433, A385776.
%K A386081 nonn,base,easy
%O A386081 1,1
%A A386081 _Jason Bard_, Jul 16 2025