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.

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

This page as a plain text file.
%I A385779 #8 Jul 13 2025 11:05:09
%S A385779 5,11,61,151,661,1151,1511,5651,6151,6551,6661,11161,11551,15161,
%T A385779 15511,15551,15661,16111,16561,16651,16661,51151,51511,51551,55511,
%U A385779 55661,56611,61151,61511,61561,61651,65111,65551,65651,66161,111611,115151,115561,151561
%N A385779 Primes having only {1, 5, 6} as digits.
%H A385779 Jason Bard, <a href="/A385779/b385779.txt">Table of n, a(n) for n = 1..10000</a>
%H A385779 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385779 Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 6}, n], PrimeQ], {n, 7}]]
%o A385779 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 6]];
%o A385779 (Python) print(list(islice(primes_with("156"), 41))) # uses function/imports in A385776
%o A385779 (PARI) primes_with(, 1, [1, 5, 6]) \\ uses function in A385776
%Y A385779 Supersequence of A020453, A020454.
%Y A385779 Cf. A000040, A385776.
%K A385779 nonn,base,easy
%O A385779 1,1
%A A385779 _Jason Bard_, Jul 13 2025