A386127 Primes having only {1, 4, 7, 9} as digits.
7, 11, 17, 19, 41, 47, 71, 79, 97, 149, 179, 191, 197, 199, 419, 449, 479, 491, 499, 719, 797, 911, 919, 941, 947, 971, 977, 991, 997, 1117, 1171, 1447, 1471, 1499, 1741, 1747, 1777, 1949, 1979, 1997, 1999, 4111, 4177, 4441, 4447, 4799, 4919, 4999, 7177, 7411
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 4, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1479"), 41))) # uses function/imports in A385776