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.

A386139 Primes having only {2, 3, 4, 5} as digits.

This page as a plain text file.
%I A386139 #6 Jul 17 2025 22:42:16
%S A386139 2,3,5,23,43,53,223,233,353,433,443,523,2243,2333,2423,2543,3253,3323,
%T A386139 3343,3433,3533,4243,4253,4423,4523,5233,5323,5333,5443,22343,22433,
%U A386139 22453,22543,23333,24223,24443,24533,25243,25253,25343,25423,25453,25523,32233,32323
%N A386139 Primes having only {2, 3, 4, 5} as digits.
%H A386139 Jason Bard, <a href="/A386139/b386139.txt">Table of n, a(n) for n = 1..10000</a>
%H A386139 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386139 Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 5}, n], PrimeQ], {n, 7}]]
%o A386139 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 5]];
%o A386139 (Python) print(list(islice(primes_with("2345"), 41))) # uses function/imports in A385776
%o A386139 (PARI) primes_with(, 1, [2, 3, 4, 5]) \\ uses function in A385776
%Y A386139 Supersequence of A199342, A199345, A214703.
%Y A386139 Cf. A000040, A030431, A385776.
%K A386139 nonn,base,easy
%O A386139 1,1
%A A386139 _Jason Bard_, Jul 17 2025