A386152 Primes having only {2, 3, 8, 9} as digits.
2, 3, 23, 29, 83, 89, 223, 229, 233, 239, 283, 293, 383, 389, 823, 829, 839, 883, 929, 983, 2239, 2293, 2333, 2339, 2383, 2389, 2393, 2399, 2833, 2939, 2999, 3229, 3299, 3323, 3329, 3389, 3823, 3833, 3889, 3923, 3929, 3989, 8233, 8293, 8329, 8389, 8839, 8893
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2389"), 41))) # uses function/imports in A385776