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.

A386118 Primes having only {1, 3, 8, 9} as digits.

This page as a plain text file.
%I A386118 #6 Jul 17 2025 07:15:28
%S A386118 3,11,13,19,31,83,89,113,131,139,181,191,193,199,311,313,331,383,389,
%T A386118 811,839,881,883,911,919,983,991,1181,1193,1319,1381,1399,1811,1831,
%U A386118 1889,1913,1931,1933,1993,1999,3119,3181,3191,3313,3319,3331,3389,3391,3833,3881
%N A386118 Primes having only {1, 3, 8, 9} as digits.
%H A386118 Jason Bard, <a href="/A386118/b386118.txt">Table of n, a(n) for n = 1..10000</a>
%H A386118 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386118 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386118 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 8, 9]];
%o A386118 (Python) print(list(islice(primes_with("1389"), 41))) # uses function/imports in A385776
%o A386118 (PARI) primes_with(, 1, [1, 3, 8, 9]) \\ uses function in A385776
%Y A386118 Supersequence of A329761, A385778, A385783, A385792.
%Y A386118 Cf. A000040, A385776.
%K A386118 nonn,base,easy
%O A386118 1,1
%A A386118 _Jason Bard_, Jul 17 2025