A386156 Primes having only {2, 4, 6, 9} as digits.
2, 29, 229, 269, 449, 499, 929, 2269, 2699, 2969, 2999, 4229, 4649, 4969, 4999, 6229, 6269, 6299, 6449, 6469, 6949, 9629, 9649, 9929, 9949, 22229, 22469, 22669, 22699, 24229, 24469, 24499, 26249, 26449, 26669, 26699, 29269, 29429, 29629, 29669, 42299, 42499, 42649
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 4, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 4, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 4, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2469"), 41))) # uses function/imports in A385776