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.

A386018 Primes having only {0, 1, 2, 5} as digits.

This page as a plain text file.
%I A386018 #7 Jul 14 2025 21:17:49
%S A386018 2,5,11,101,151,211,251,521,1021,1051,1151,1201,1511,2011,2111,2221,
%T A386018 2251,2521,2551,5011,5021,5051,5101,5501,5521,10111,10151,10211,10501,
%U A386018 11251,11551,12011,12101,12211,12251,12511,15101,15121,15511,15551,20011,20021,20051
%N A386018 Primes having only {0, 1, 2, 5} as digits.
%H A386018 Jason Bard, <a href="/A386018/b386018.txt">Table of n, a(n) for n = 1..10000</a>
%H A386018 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386018 Select[FromDigits /@ Tuples[{0, 1, 2, 5}, n], PrimeQ]
%o A386018 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 5]];
%o A386018 (Python) print(list(islice(primes_with("0125"), 41))) # uses function/imports in A385776
%o A386018 (PARI) primes_with(, 1, [0, 1, 2, 5]) \\ uses function in A385776
%Y A386018 Supersequence of A036953, A199325, A385773.
%Y A386018 Cf. A000040, A030430, A385776.
%K A386018 nonn,base,easy
%O A386018 1,1
%A A386018 _Jason Bard_, Jul 14 2025