A386114 Primes having only {1, 3, 6, 7} as digits.
3, 7, 11, 13, 17, 31, 37, 61, 67, 71, 73, 113, 131, 137, 163, 167, 173, 311, 313, 317, 331, 337, 367, 373, 613, 617, 631, 661, 673, 677, 733, 761, 773, 1117, 1163, 1171, 1361, 1367, 1373, 1613, 1637, 1663, 1667, 1733, 1777, 3137, 3163, 3167, 3313, 3331, 3361
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 3, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1367"), 41))) # uses function/imports in A385776