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.

A386050 Primes having only {0, 2, 5, 9} as digits.

This page as a plain text file.
%I A386050 #6 Jul 15 2025 21:16:37
%S A386050 2,5,29,59,229,509,599,929,2029,2099,2909,2999,5009,5059,5099,5209,
%T A386050 9029,9059,9209,9929,20029,20509,20599,20929,20959,22229,22259,25229,
%U A386050 25999,29009,29059,29209,29599,29959,50599,50909,50929,52009,52259,52529,52999,55009
%N A386050 Primes having only {0, 2, 5, 9} as digits.
%H A386050 Jason Bard, <a href="/A386050/b386050.txt">Table of n, a(n) for n = 1..10000</a>
%H A386050 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386050 Select[FromDigits /@ Tuples[{0, 2, 5, 9}, n], PrimeQ]
%o A386050 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 5, 9]];
%o A386050 (Python) print(list(islice(primes_with("0259"), 41))) # uses function/imports in A385776
%o A386050 (PARI) primes_with(, 1, [0, 2, 5, 9]) \\ uses function in A385776
%Y A386050 Supersequence of A261268, A385769, A385786.
%Y A386050 Cf. A000040, A030433, A385776.
%K A386050 nonn,base,easy
%O A386050 1,1
%A A386050 _Jason Bard_, Jul 15 2025