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.

A385774 Primes having only {1, 2, 6} as digits.

This page as a plain text file.
%I A385774 #13 Jul 12 2025 21:21:06
%S A385774 2,11,61,211,661,1621,2111,2161,2221,2621,6121,6211,6221,6661,11161,
%T A385774 11261,11621,12161,12211,12611,16111,16661,21121,21211,21221,21611,
%U A385774 21661,22111,22621,26111,26161,26261,61121,61211,61261,66161,66221,111121,111211
%N A385774 Primes having only {1, 2, 6} as digits.
%H A385774 Jason Bard, <a href="/A385774/b385774.txt">Table of n, a(n) for n = 1..10000</a>
%H A385774 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A385774 Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 6}, n], PrimeQ], {n, 7}]]
%o A385774 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 6]];
%o A385774 (Python) print(list(islice(primes_with("126"), 41))) # uses function/imports in A385776
%o A385774 (PARI) primes_with(, 1, [1, 2, 6]) \\ uses function in A385776
%Y A385774 Supersequence of A020450, A020454.
%Y A385774 Cf. A000040, A385776.
%K A385774 nonn,base,easy
%O A385774 1,1
%A A385774 _Jason Bard_, Jul 09 2025