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.

A386020 Primes having only {0, 1, 2, 7} as digits.

This page as a plain text file.
%I A386020 #6 Jul 14 2025 21:17:41
%S A386020 2,7,11,17,71,101,107,127,211,227,271,277,701,727,1021,1117,1171,1201,
%T A386020 1217,1277,1721,1777,2011,2017,2027,2111,2207,2221,2707,2711,2777,
%U A386020 7001,7027,7121,7127,7177,7207,7211,7717,7727,10007,10111,10177,10211,10271,10711
%N A386020 Primes having only {0, 1, 2, 7} as digits.
%H A386020 Jason Bard, <a href="/A386020/b386020.txt">Table of n, a(n) for n = 1..10000</a>
%H A386020 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386020 Select[FromDigits /@ Tuples[{0, 1, 2, 7}, n], PrimeQ]
%o A386020 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 7]];
%o A386020 (Python) print(list(islice(primes_with("0127"), 41))) # uses function/imports in A385776
%o A386020 (PARI) primes_with(, 1, [0, 1, 2, 7]) \\ uses function in A385776
%Y A386020 Supersequence of A036953, A199327, A260889.
%Y A386020 Cf. A000040, A385776.
%K A386020 nonn,base,easy
%O A386020 1,1
%A A386020 _Jason Bard_, Jul 14 2025