A386130 Primes having only {1, 5, 6, 8} as digits.
5, 11, 61, 151, 181, 661, 811, 881, 1151, 1181, 1511, 1811, 1861, 5581, 5651, 5851, 5861, 5881, 6151, 6551, 6581, 6661, 8111, 8161, 8581, 8681, 8861, 11161, 11551, 11681, 15161, 15511, 15551, 15581, 15661, 15881, 16111, 16561, 16651, 16661, 16811, 18181, 18661
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 5, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1568"), 41))) # uses function/imports in A385776