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.

A386017 Primes having only {0, 1, 2, 4} as digits.

This page as a plain text file.
%I A386017 #8 Jul 14 2025 21:17:53
%S A386017 2,11,41,101,211,241,401,421,1021,1201,2011,2111,2141,2221,2411,2441,
%T A386017 4001,4021,4111,4201,4211,4241,4421,4441,10111,10141,10211,11411,
%U A386017 12011,12041,12101,12211,12241,12401,12421,14011,14221,14401,14411,20011,20021,20101,20201
%N A386017 Primes having only {0, 1, 2, 4} as digits.
%H A386017 Jason Bard, <a href="/A386017/b386017.txt">Table of n, a(n) for n = 1..10000</a>
%H A386017 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386017 Select[FromDigits /@ Tuples[{0, 1, 2, 4}, n], PrimeQ]
%o A386017 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 4]];
%o A386017 (Python) print(list(islice(primes_with("0124"), 41))) # uses function/imports in A385776
%o A386017 (PARI) primes_with(, 1, [0, 1, 2, 4]) \\ uses function in A385776
%Y A386017 Subsequence of A036956.
%Y A386017 Supersequence of A036953, A260266, A260267.
%Y A386017 Cf. A000040, A030430, A385776.
%K A386017 nonn,base,easy
%O A386017 1,1
%A A386017 _Jason Bard_, Jul 14 2025