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.

A385797 Primes having only {5, 6, 9} as digits.

This page as a plain text file.
%I A385797 #6 Jul 14 2025 00:26:11
%S A385797 5,59,569,599,659,5569,5659,5669,6569,6599,6659,6959,56569,56599,
%T A385797 56659,56999,59659,59669,59699,59999,65599,65699,66569,66959,69959,
%U A385797 95569,95959,96959,99559,556559,556999,565559,566659,566999,569599,569659,596569,596599,596669
%N A385797 Primes having only {5, 6, 9} as digits.
%H A385797 Jason Bard, <a href="/A385797/b385797.txt">Table of n, a(n) for n = 1..10000</a>
%H A385797 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385797 Flatten[Table[Select[FromDigits /@ Tuples[{5, 6, 9}, n], PrimeQ], {n, 7}]]
%o A385797 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [5, 6, 9]];
%o A385797 (Python) print(list(islice(primes_with("569"), 41))) # uses function/imports in A385776
%o A385797 (PARI) primes_with(, 1, [5, 6, 9]) \\ uses function in A385776
%Y A385797 Supersequence of A020468.
%Y A385797 Cf. A000040, A030433, A385776.
%K A385797 nonn,base,easy
%O A385797 1,1
%A A385797 _Jason Bard_, Jul 13 2025