A386146 Primes having only {2, 3, 5, 9} as digits.
2, 3, 5, 23, 29, 53, 59, 223, 229, 233, 239, 293, 353, 359, 523, 593, 599, 929, 953, 2239, 2293, 2333, 2339, 2393, 2399, 2539, 2593, 2939, 2953, 2999, 3229, 3253, 3259, 3299, 3323, 3329, 3359, 3529, 3533, 3539, 3559, 3593, 3923, 3929, 5233, 5323, 5333, 5393, 5399
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 5, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 5, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 5, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2359"), 41))) # uses function/imports in A385776