login
A385778
Primes having only {1, 3, 8} as digits.
7
3, 11, 13, 31, 83, 113, 131, 181, 311, 313, 331, 383, 811, 881, 883, 1181, 1381, 1811, 1831, 3181, 3313, 3331, 3833, 3881, 8111, 8311, 8831, 11113, 11131, 11311, 11383, 11813, 11831, 11833, 13183, 13313, 13331, 13381, 13831, 13883, 18131, 18133, 18181, 18311
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 8}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 8]];
(Python) print(list(islice(primes_with("138"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [1, 3, 8]) \\ uses function in A385776
CROSSREFS
Supersequence of A020451, A020456, A020464.
Sequence in context: A111488 A385777 A125308 * A260044 A199303 A244047
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved