A386106 Primes having only {1, 3, 4, 6} as digits.
3, 11, 13, 31, 41, 43, 61, 113, 131, 163, 311, 313, 331, 431, 433, 443, 461, 463, 613, 631, 641, 643, 661, 1163, 1361, 1433, 1613, 1663, 3163, 3313, 3331, 3343, 3361, 3413, 3433, 3461, 3463, 3613, 3631, 3643, 4111, 4133, 4363, 4441, 4463, 4643, 4663, 6113, 6131
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 4, 6]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 4, 6}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 3, 4, 6]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1346"), 41))) # uses function/imports in A385776