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.

A386037 Primes having only {0, 1, 6, 9} as digits.

This page as a plain text file.
%I A386037 #8 Jul 15 2025 18:09:39
%S A386037 11,19,61,101,109,191,199,601,619,661,691,911,919,991,1009,1019,1061,
%T A386037 1069,1091,1109,1601,1609,1619,1669,1699,1901,1999,6011,6091,6101,
%U A386037 6199,6619,6661,6691,6911,6961,6991,9001,9011,9091,9109,9161,9199,9601,9619,9661,9901
%N A386037 Primes having only {0, 1, 6, 9} as digits.
%H A386037 Jason Bard, <a href="/A386037/b386037.txt">Table of n, a(n) for n = 1..10000</a>
%H A386037 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%p A386037 f:= n-> (l-> add([0, 1, 6, 9][l[j]+1]*10^(j-1), j=1..nops(l)))(convert(n, base, 4)):
%p A386037 select(isprime, [seq(f(i), i=0..250)])[];  # _Alois P. Heinz_, Jul 15 2025
%t A386037 Select[FromDigits /@ Tuples[{0, 1, 6, 9}, n], PrimeQ]
%o A386037 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 6, 9]];
%o A386037 (Python) print(list(islice(primes_with("0169"), 41))) # uses function/imports in A385776
%o A386037 (PARI) primes_with(, 1, [0, 1, 6, 9]) \\ uses function in A385776
%Y A386037 Supersequence of A199326, A199329, A363023.
%Y A386037 Cf. A000040, A385776.
%K A386037 nonn,base,easy
%O A386037 1,1
%A A386037 _Jason Bard_, Jul 15 2025