A386125 Primes having only {1, 4, 6, 9} as digits.
11, 19, 41, 61, 149, 191, 199, 419, 449, 461, 491, 499, 619, 641, 661, 691, 911, 919, 941, 991, 1499, 1619, 1669, 1699, 1949, 1999, 4111, 4441, 4649, 4691, 4919, 4969, 4999, 6199, 6449, 6469, 6491, 6619, 6661, 6691, 6911, 6949, 6961, 6991, 9161, 9199, 9419, 9461
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 4, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1469"), 41))) # uses function/imports in A385776