login
A385775
Primes having only {1, 2, 8} as digits.
7
2, 11, 181, 211, 281, 811, 821, 881, 1181, 1811, 2111, 2221, 2281, 8111, 8221, 8821, 11821, 12211, 12281, 12821, 18121, 18181, 18211, 21121, 21211, 21221, 21821, 21881, 22111, 22811, 28111, 28181, 28211, 81181, 81281, 82811, 88211, 88811, 111121
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 8}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 8]];
(Python) print(list(islice(primes_with("128"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [1, 2, 8]) \\ uses function in A385776
CROSSREFS
Supersequence of A020450, A020456.
Sequence in context: A011839 A271507 A217391 * A297601 A089760 A288556
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 09 2025
STATUS
approved