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.

A386160 Primes having only {2, 5, 6, 7} as digits.

This page as a plain text file.
%I A386160 #6 Jul 18 2025 16:03:17
%S A386160 2,5,7,67,227,257,277,557,577,677,727,757,2267,2557,2657,2677,2767,
%T A386160 2777,5227,5527,5557,5657,6257,6277,6577,7577,7727,7757,22277,22567,
%U A386160 22727,22777,25577,25657,25667,26227,26267,26557,26627,26777,27277,27527,27767,52267
%N A386160 Primes having only {2, 5, 6, 7} as digits.
%H A386160 Jason Bard, <a href="/A386160/b386160.txt">Table of n, a(n) for n = 1..10000</a>
%H A386160 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386160 Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 6, 7}, n], PrimeQ], {n, 7}]]
%o A386160 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 6, 7]];
%o A386160 (Python) print(list(islice(primes_with("2567"), 41))) # uses function/imports in A385776
%o A386160 (PARI) primes_with(, 1, [2, 5, 6, 7]) \\ uses function in A385776
%Y A386160 Supersequence of A214705, A260829, A385787.
%Y A386160 Cf. A000040, A030432, A385776.
%K A386160 nonn,base,easy
%O A386160 1,1
%A A386160 _Jason Bard_, Jul 18 2025