login
A062350
Primes containing digits 1, 2, 3 only.
3
2, 3, 11, 13, 23, 31, 113, 131, 211, 223, 233, 311, 313, 331, 1123, 1213, 1223, 1231, 1321, 2111, 2113, 2131, 2213, 2221, 2311, 2333, 3121, 3221, 3313, 3323, 3331, 11113, 11131, 11213, 11311, 11321, 12113, 12211, 12323, 13121, 13313, 13331
OFFSET
1,1
LINKS
MATHEMATICA
Select[Prime[Range[2 10^4]], Complement[IntegerDigits[#], {1, 2, 3}]=={}&] (* Vincenzo Librandi, Jan 16 2020 *)
Select[Flatten[Table[FromDigits/@Tuples[{1, 2, 3}, n], {n, 5}]], PrimeQ] (* Harvey P. Dale, Aug 04 2024 *)
PROG
(Magma) [p: p in PrimesUpTo(25000) | Intseq(p) subset {1, 2, 3}]; // Vincenzo Librandi, Jan 16 2020
CROSSREFS
Sequence in context: A004678 A107715 A090707 * A163498 A038874 A164624
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 23 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jul 06 2001
Offset 1 from Michel Marcus, Jan 16 2020
STATUS
approved