A386143 Primes having only {2, 3, 4, 9} as digits.
2, 3, 23, 29, 43, 223, 229, 233, 239, 293, 349, 433, 439, 443, 449, 499, 929, 2239, 2243, 2293, 2333, 2339, 2393, 2399, 2423, 2939, 2999, 3229, 3299, 3323, 3329, 3343, 3433, 3449, 3499, 3923, 3929, 3943, 4229, 4243, 4339, 4349, 4423, 4493, 4933, 4943, 4993, 4999
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 4, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2349"), 41))) # uses function/imports in A385776