A386131 Primes having only {1, 5, 6, 9} as digits.
5, 11, 19, 59, 61, 151, 191, 199, 569, 599, 619, 659, 661, 691, 911, 919, 991, 1151, 1511, 1559, 1619, 1669, 1699, 1951, 1999, 5119, 5519, 5569, 5591, 5651, 5659, 5669, 6151, 6199, 6551, 6569, 6599, 6619, 6659, 6661, 6691, 6911, 6959, 6961, 6991, 9151, 9161, 9199
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 5, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1569"), 41))) # uses function/imports in A385776