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.

A386023 Primes having only {0, 1, 3, 4} as digits.

This page as a plain text file.
%I A386023 #6 Jul 14 2025 21:17:29
%S A386023 3,11,13,31,41,43,101,103,113,131,311,313,331,401,431,433,443,1013,
%T A386023 1031,1033,1103,1301,1303,1433,3001,3011,3041,3301,3313,3331,3343,
%U A386023 3413,3433,4001,4003,4013,4111,4133,4441,10103,10111,10133,10141,10301,10303,10313,10331
%N A386023 Primes having only {0, 1, 3, 4} as digits.
%H A386023 Jason Bard, <a href="/A386023/b386023.txt">Table of n, a(n) for n = 1..10000</a>
%H A386023 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386023 Select[FromDigits /@ Tuples[{0, 1, 3, 4}, n], PrimeQ]
%o A386023 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 3, 4]];
%o A386023 (Python) print(list(islice(primes_with("0134"), 41))) # uses function/imports in A385776
%o A386023 (PARI) primes_with(, 1, [0, 1, 3, 4]) \\ uses function in A385776
%Y A386023 Subsequence of A036956.
%Y A386023 Supersequence of A199341, A260044, A260266.
%Y A386023 Cf. A000040, A385776.
%K A386023 nonn,base,easy
%O A386023 1,1
%A A386023 _Jason Bard_, Jul 14 2025