A386169 Primes having only {3, 4, 5, 6} as digits.
3, 5, 43, 53, 353, 433, 443, 463, 563, 643, 653, 3343, 3433, 3463, 3533, 3643, 4363, 4463, 4643, 4663, 5333, 5443, 5563, 5653, 6343, 6353, 6553, 6563, 6653, 33343, 33353, 33533, 33563, 34543, 35353, 35363, 35533, 35543, 36343, 36353, 36433, 36563, 36643, 36653
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 6]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 6}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 5, 6]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3456"), 41))) # uses function/imports in A385776