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.

A386129 Primes having only {1, 5, 6, 7} as digits.

This page as a plain text file.
%I A386129 #6 Jul 17 2025 19:36:26
%S A386129 5,7,11,17,61,67,71,151,157,167,557,571,577,617,661,677,751,757,761,
%T A386129 1117,1151,1171,1511,1567,1571,1657,1667,1777,5167,5171,5557,5651,
%U A386129 5657,5711,5717,6151,6551,6571,6577,6661,6761,7151,7177,7517,7561,7577,7717,7757
%N A386129 Primes having only {1, 5, 6, 7} as digits.
%H A386129 Jason Bard, <a href="/A386129/b386129.txt">Table of n, a(n) for n = 1..10000</a>
%H A386129 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386129 Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 6, 7}, n], PrimeQ], {n, 7}]]
%o A386129 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 6, 7]];
%o A386129 (Python) print(list(islice(primes_with("1567"), 41))) # uses function/imports in A385776
%o A386129 (PARI) primes_with(, 1, [1, 5, 6, 7]) \\ uses function in A385776
%Y A386129 Supersequence of A260828, A260829, A260891, A385779.
%Y A386129 Cf. A000040, A385776.
%K A386129 nonn,base,easy
%O A386129 1,1
%A A386129 _Jason Bard_, Jul 17 2025