What is the highest prime number with no repeated digits?
Thanks to prime tables the solution came quickly.
The prime won't have 10 distinct digits because then it would be divisible by 3. So 9 digits is the theoretical max.
987654abc would be a possible maximal form. (a,b,c) can only be (0,1,3) or (0,2,3) so there are just a handful of cases to check.
Looking up a list of primes I found 987654103 is prime while the other possibilities are not.

Posted by xdog
on 20181212 09:33:53 