A386175 Primes having only {3, 4, 6, 9} as digits.
3, 43, 349, 433, 439, 443, 449, 463, 499, 643, 3343, 3433, 3449, 3463, 3469, 3499, 3643, 3943, 4339, 4349, 4363, 4463, 4493, 4639, 4643, 4649, 4663, 4933, 4943, 4969, 4993, 4999, 6343, 6449, 6469, 6949, 9343, 9349, 9433, 9439, 9463, 9643, 9649, 9949, 33343, 33349
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3469"), 41))) # uses function/imports in A385776