A386161 Primes having only {2, 5, 6, 9} as digits.
2, 5, 29, 59, 229, 269, 569, 599, 659, 929, 2269, 2659, 2699, 2969, 2999, 5569, 5659, 5669, 6229, 6269, 6299, 6529, 6569, 6599, 6659, 6959, 9629, 9929, 22229, 22259, 22669, 22699, 25229, 25969, 25999, 26669, 26699, 26959, 29269, 29569, 29599, 29629, 29669, 29959
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 5, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2569"), 41))) # uses function/imports in A385776