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.

A386164 Primes having only {2, 5, 8, 9} as digits.

This page as a plain text file.
%I A386164 #6 Jul 18 2025 16:03:31
%S A386164 2,5,29,59,89,229,599,829,859,929,2999,8599,8929,8999,9829,9859,9929,
%T A386164 22229,22259,22859,25229,25589,25889,25999,28229,28289,28559,28859,
%U A386164 29599,29959,29989,52259,52289,52529,52859,52889,52999,55229,55259,55529,55589,55829
%N A386164 Primes having only {2, 5, 8, 9} as digits.
%H A386164 Jason Bard, <a href="/A386164/b386164.txt">Table of n, a(n) for n = 1..10000</a>
%H A386164 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386164 Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386164 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 8, 9]];
%o A386164 (Python) print(list(islice(primes_with("2589"), 41))) # uses function/imports in A385776
%o A386164 (PARI) primes_with(, 1, [2, 5, 8, 9]) \\ uses function in A385776
%Y A386164 Supersequence of A385786, A385790, A385798.
%Y A386164 Cf. A000040, A030433, A385776.
%K A386164 nonn,base,easy
%O A386164 1,1
%A A386164 _Jason Bard_, Jul 18 2025