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.

A386027 Primes having only {0, 1, 4, 5} as digits.

This page as a plain text file.
%I A386027 #6 Jul 15 2025 08:28:48
%S A386027 5,11,41,101,151,401,541,1051,1151,1451,1511,4001,4051,4111,4441,4451,
%T A386027 5011,5051,5101,5441,5501,10111,10141,10151,10501,11411,11551,14011,
%U A386027 14051,14401,14411,14551,15101,15401,15451,15511,15541,15551,40111,40151,41011,41051
%N A386027 Primes having only {0, 1, 4, 5} as digits.
%H A386027 Jason Bard, <a href="/A386027/b386027.txt">Table of n, a(n) for n = 1..10000</a>
%H A386027 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386027 Select[FromDigits /@ Tuples[{0, 1, 4, 5}, n], PrimeQ]
%o A386027 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 4, 5]];
%o A386027 (Python) print(list(islice(primes_with("0145"), 41))) # uses function/imports in A385776
%o A386027 (PARI) primes_with(, 1, [0, 1, 4, 5]) \\ uses function in A385776
%Y A386027 Supersequence of A199325, A260266, A260268.
%Y A386027 Cf. A000040, A030430, A385776.
%K A386027 nonn,base,easy
%O A386027 1,1
%A A386027 _Jason Bard_, Jul 14 2025