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.

A386126 Primes having only {1, 4, 7, 8} as digits.

This page as a plain text file.
%I A386126 #6 Jul 17 2025 07:16:25
%S A386126 7,11,17,41,47,71,181,487,787,811,877,881,887,1117,1171,1181,1187,
%T A386126 1447,1471,1481,1487,1741,1747,1777,1787,1811,1847,1871,1877,4111,
%U A386126 4177,4441,4447,4481,4787,4817,4871,4877,7177,7187,7411,7417,7477,7481,7487,7717,7741
%N A386126 Primes having only {1, 4, 7, 8} as digits.
%H A386126 Jason Bard, <a href="/A386126/b386126.txt">Table of n, a(n) for n = 1..10000</a>
%H A386126 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386126 Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386126 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 7, 8]];
%o A386126 (Python) print(list(islice(primes_with("1478"), 41))) # uses function/imports in A385776
%o A386126 (PARI) primes_with(, 1, [1, 4, 7, 8]) \\ uses function in A385776
%Y A386126 Supersequence of A079651, A260270, A260892, A385795.
%Y A386126 Cf. A000040, A385776.
%K A386126 nonn,base,easy
%O A386126 1,1
%A A386126 _Jason Bard_, Jul 17 2025