A386149 Primes having only {2, 3, 6, 9} as digits.
2, 3, 23, 29, 223, 229, 233, 239, 263, 269, 293, 929, 2239, 2269, 2293, 2333, 2339, 2393, 2399, 2633, 2663, 2693, 2699, 2939, 2963, 2969, 2999, 3229, 3299, 3323, 3329, 3623, 3923, 3929, 6229, 6263, 6269, 6299, 6323, 6329, 9239, 9293, 9323, 9623, 9629, 9923, 9929
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2369"), 41))) # uses function/imports in A385776