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.

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

This page as a plain text file.
%I A386095 #7 Jul 16 2025 23:38:48
%S A386095 2,5,11,61,151,211,251,521,661,1151,1511,1621,2111,2161,2221,2251,
%T A386095 2521,2551,2621,5261,5521,5651,6121,6151,6211,6221,6521,6551,6661,
%U A386095 11161,11251,11261,11551,11621,12161,12211,12251,12511,12611,15121,15161,15511,15551,15661
%N A386095 Primes having only {1, 2, 5, 6} as digits.
%H A386095 Jason Bard, <a href="/A386095/b386095.txt">Table of n, a(n) for n = 1..10000</a>
%H A386095 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386095 Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 5, 6}, n], PrimeQ], {n, 7}]]
%o A386095 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 5, 6]];
%o A386095 (Python) print(list(islice(primes_with("1256"), 41))) # uses function/imports in A385776
%o A386095 (PARI) primes_with(, 1, [1, 2, 5, 6]) \\ uses function in A385776
%Y A386095 Supersequence of A385773, A385774, A385779.
%Y A386095 Cf. A000040, A030430, A385776.
%K A386095 nonn,base,easy
%O A386095 1,1
%A A386095 _Jason Bard_, Jul 16 2025