A386090 Primes having only {1, 2, 3, 9} as digits.
2, 3, 11, 13, 19, 23, 29, 31, 113, 131, 139, 191, 193, 199, 211, 223, 229, 233, 239, 293, 311, 313, 331, 911, 919, 929, 991, 1123, 1129, 1193, 1213, 1223, 1229, 1231, 1291, 1319, 1321, 1399, 1913, 1931, 1933, 1993, 1999, 2111, 2113, 2129, 2131, 2213, 2221, 2239
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 3, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 3, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 2, 3, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1239"), 41))) # uses function/imports in A385776