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 A386026 #7 Jul 14 2025 21:17:17 %S A386026 3,11,13,19,31,101,103,109,113,131,139,191,193,199,311,313,331,911, %T A386026 919,991,1009,1013,1019,1031,1033,1039,1091,1093,1103,1109,1193,1301, %U A386026 1303,1319,1399,1901,1913,1931,1933,1993,1999,3001,3011,3019,3109,3119,3191,3301 %N A386026 Primes having only {0, 1, 3, 9} as digits. %C A386026 Primes that only contain digits that are 0 or integer powers of 3. %H A386026 Jason Bard, <a href="/A386026/b386026.txt">Table of n, a(n) for n = 1..10000</a> %H A386026 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %t A386026 Select[FromDigits /@ Tuples[{0, 1, 3, 9}, n], PrimeQ] %o A386026 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 3, 9]]; %o A386026 (Python) print(list(islice(primes_with("0139"), 41))) # uses function/imports in A385776 %o A386026 (PARI) primes_with(, 1, [0, 1, 3, 9]) \\ uses function in A385776 %Y A386026 Supersequence of A199329, A260044, A329761. %Y A386026 Cf. A000040, A385776. %K A386026 nonn,base,easy %O A386026 1,1 %A A386026 _Jason Bard_, Jul 14 2025