A386160 Primes having only {2, 5, 6, 7} as digits.
2, 5, 7, 67, 227, 257, 277, 557, 577, 677, 727, 757, 2267, 2557, 2657, 2677, 2767, 2777, 5227, 5527, 5557, 5657, 6257, 6277, 6577, 7577, 7727, 7757, 22277, 22567, 22727, 22777, 25577, 25657, 25667, 26227, 26267, 26557, 26627, 26777, 27277, 27527, 27767, 52267
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 5, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2567"), 41))) # uses function/imports in A385776