A385791 Primes having only {3, 6, 8} as digits.
3, 83, 383, 683, 863, 883, 3833, 3863, 6833, 6863, 6883, 8363, 8663, 8863, 33863, 36383, 36683, 36833, 38333, 38833, 63863, 66383, 66683, 66863, 66883, 68633, 68683, 68863, 83383, 83663, 83833, 88663, 88883, 333383, 336683, 336863, 338383, 338683, 363683, 363833
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("368"), 41))) # uses function/imports in A385776