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.

A386040 Primes having only {0, 1, 8, 9} as digits.

This page as a plain text file.
%I A386040 #6 Jul 15 2025 18:03:48
%S A386040 11,19,89,101,109,181,191,199,809,811,881,911,919,991,1009,1019,1091,
%T A386040 1109,1181,1801,1811,1889,1901,1999,8009,8011,8081,8089,8101,8111,
%U A386040 8191,8819,8999,9001,9011,9091,9109,9181,9199,9811,9901,10009,10091,10099,10111,10181
%N A386040 Primes having only {0, 1, 8, 9} as digits.
%H A386040 Jason Bard, <a href="/A386040/b386040.txt">Table of n, a(n) for n = 1..10000</a>
%H A386040 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386040 Select[FromDigits /@ Tuples[{0, 1, 8, 9}, n], PrimeQ]
%o A386040 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 8, 9]];
%o A386040 (Python) print(list(islice(primes_with("0189"), 41))) # uses function/imports in A385776
%o A386040 (PARI) primes_with(, 1, [0, 1, 8, 9]) \\ uses function in A385776
%Y A386040 Supersequence of A061247, A199329, A385783.
%Y A386040 Cf. A000040, A385776.
%K A386040 nonn,base,easy
%O A386040 1,1
%A A386040 _Jason Bard_, Jul 15 2025