A385711 Primes whose digits are all distinct and pairwise coprime.
2, 3, 5, 7, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 127, 137, 149, 157, 167, 173, 179, 197, 251, 257, 271, 317, 347, 419, 431, 457, 479, 491, 521, 523, 541, 547, 571, 587, 617, 719, 743, 751, 761, 853, 857, 859, 941, 947, 971, 1237, 1259
Offset: 1
Examples
857 is a term since it is prime and gcd(8, 5) = gcd(5, 7) = gcd(8, 7) = 1.
Links
- Gonzalo MartÃnez, Table of n, a(n) for n = 1..252
Programs
-
Mathematica
Select[Prime[Range[10000]], UnsameQ @@ (d = IntegerDigits[#]) && AllTrue[Subsets[d, {2}], CoprimeQ @@ # &] &] (* Amiram Eldar, Jul 13 2025 *)
Comments