login
A385777
Primes having only {1, 3, 6} as digits.
7
3, 11, 13, 31, 61, 113, 131, 163, 311, 313, 331, 613, 631, 661, 1163, 1361, 1613, 1663, 3163, 3313, 3331, 3361, 3613, 3631, 6113, 6131, 6133, 6163, 6311, 6361, 6661, 11113, 11131, 11161, 11311, 11633, 13163, 13313, 13331, 13613, 13633, 16111
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 6}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 6]];
(Python) print(list(islice(primes_with("136"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [1, 3, 6]) \\ uses function in A385776
CROSSREFS
Supersequence of A020451, A020454.
Sequence in context: A199341 A386115 A111488 * A125308 A385778 A260044
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 09 2025
STATUS
approved