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.

A386102 Primes having only {1, 2, 7, 8} as digits.

This page as a plain text file.
%I A386102 #6 Jul 17 2025 00:50:07
%S A386102 2,7,11,17,71,127,181,211,227,271,277,281,727,787,811,821,827,877,881,
%T A386102 887,1117,1171,1181,1187,1217,1277,1721,1777,1787,1811,1871,1877,2111,
%U A386102 2221,2281,2287,2711,2777,2887,7121,7127,7177,7187,7211,7717,7727,7817,7877
%N A386102 Primes having only {1, 2, 7, 8} as digits.
%H A386102 Jason Bard, <a href="/A386102/b386102.txt">Table of n, a(n) for n = 1..10000</a>
%H A386102 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386102 Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386102 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 7, 8]];
%o A386102 (Python) print(list(islice(primes_with("1278"), 41))) # uses function/imports in A385776
%o A386102 (PARI) primes_with(, 1, [1, 2, 7, 8]) \\ uses function in A385776
%Y A386102 Supersequence of A260889, A260892, A385775, A385789.
%Y A386102 Cf. A000040, A385776.
%K A386102 nonn,base,easy
%O A386102 1,1
%A A386102 _Jason Bard_, Jul 17 2025