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.

A386117 Primes having only {1, 3, 7, 8} as digits.

This page as a plain text file.
%I A386117 #7 Jul 17 2025 07:15:16
%S A386117 3,7,11,13,17,31,37,71,73,83,113,131,137,173,181,311,313,317,331,337,
%T A386117 373,383,733,773,787,811,877,881,883,887,1117,1171,1181,1187,1373,
%U A386117 1381,1733,1777,1783,1787,1811,1831,1871,1873,1877,3137,3181,3187,3313,3331,3371
%N A386117 Primes having only {1, 3, 7, 8} as digits.
%H A386117 Jason Bard, <a href="/A386117/b386117.txt">Table of n, a(n) for n = 1..10000</a>
%H A386117 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386117 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 7, 8}, n], PrimeQ], {n, 7}]]
%o A386117 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 7, 8]];
%o A386117 (Python) print(list(islice(primes_with("1378"), 41))) # uses function/imports in A385776
%o A386117 (PARI) primes_with(, 1, [1, 3, 7, 8]) \\ uses function in A385776
%Y A386117 Supersequence of A260379, A260381, A260892, A385778.
%Y A386117 Cf. A000040, A385776.
%K A386117 nonn,base,easy
%O A386117 1,1
%A A386117 _Jason Bard_, Jul 17 2025