A386113 Primes having only {1, 3, 5, 9} as digits.
3, 5, 11, 13, 19, 31, 53, 59, 113, 131, 139, 151, 191, 193, 199, 311, 313, 331, 353, 359, 593, 599, 911, 919, 953, 991, 1151, 1153, 1193, 1319, 1399, 1511, 1531, 1553, 1559, 1913, 1931, 1933, 1951, 1993, 1999, 3119, 3191, 3313, 3319, 3331, 3359, 3391, 3511, 3533
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 5, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 5, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 3, 5, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1359"), 41))) # uses function/imports in A385776