A386124 Primes having only {1, 4, 6, 8} as digits.
11, 41, 61, 181, 461, 641, 661, 811, 881, 1181, 1481, 1811, 1861, 4111, 4441, 4481, 4861, 6481, 6661, 6841, 8111, 8161, 8461, 8641, 8681, 8861, 11161, 11411, 11681, 14411, 14461, 16111, 16141, 16411, 16481, 16661, 16811, 18181, 18461, 18481, 18661, 41141, 41161
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 4, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1468"), 41))) # uses function/imports in A385776