A386174 Primes having only {3, 4, 6, 8} as digits.
3, 43, 83, 383, 433, 443, 463, 643, 683, 863, 883, 3343, 3433, 3463, 3643, 3833, 3863, 4363, 4463, 4483, 4643, 4663, 6343, 6833, 6863, 6883, 8363, 8443, 8663, 8863, 33343, 33863, 34483, 34843, 34883, 36343, 36383, 36433, 36643, 36683, 36833, 38333, 38833, 43633
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3468"), 41))) # uses function/imports in A385776