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.

A386138 Primes having only {1, 7, 8, 9} as digits.

This page as a plain text file.
%I A386138 #6 Jul 17 2025 22:42:13
%S A386138 7,11,17,19,71,79,89,97,179,181,191,197,199,719,787,797,811,877,881,
%T A386138 887,911,919,971,977,991,997,1117,1171,1181,1187,1777,1787,1789,1811,
%U A386138 1871,1877,1879,1889,1979,1987,1997,1999,7177,7187,7717,7789,7817,7877,7879,7919
%N A386138 Primes having only {1, 7, 8, 9} as digits.
%H A386138 Jason Bard, <a href="/A386138/b386138.txt">Table of n, a(n) for n = 1..10000</a>
%H A386138 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386138 Flatten[Table[Select[FromDigits /@ Tuples[{1, 7, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386138 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 7, 8, 9]];
%o A386138 (Python) print(list(islice(primes_with("1789"), 41))) # uses function/imports in A385776
%o A386138 (PARI) primes_with(, 1, [1, 7, 8, 9]) \\ uses function in A385776
%Y A386138 Supersequence of A106110, A260892, A260893, A385783.
%Y A386138 Cf. A000040, A385776.
%K A386138 nonn,base,easy
%O A386138 1,1
%A A386138 _Jason Bard_, Jul 17 2025