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.
%I A386116 #6 Jul 17 2025 02:55:36 %S A386116 3,11,13,19,31,61,113,131,139,163,191,193,199,311,313,331,613,619,631, %T A386116 661,691,911,919,991,1163,1193,1319,1361,1399,1613,1619,1663,1669, %U A386116 1693,1699,1913,1931,1933,1993,1999,3119,3163,3169,3191,3313,3319,3331,3361,3391 %N A386116 Primes having only {1, 3, 6, 9} as digits. %H A386116 Jason Bard, <a href="/A386116/b386116.txt">Table of n, a(n) for n = 1..10000</a> %H A386116 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386116 Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 6, 9}, n], PrimeQ], {n, 7}]] %o A386116 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 6, 9]]; %o A386116 (Python) print(list(islice(primes_with("1369"), 41))) # uses function/imports in A385776 %o A386116 (PARI) primes_with(, 1, [1, 3, 6, 9]) \\ uses function in A385776 %Y A386116 Supersequence of A329761, A363023, A385777. %Y A386116 Cf. A000040, A385776. %K A386116 nonn,base,easy %O A386116 1,1 %A A386116 _Jason Bard_, Jul 17 2025