What is the largest prime with distinct digits? (It is certainly less than ten digits long.Can you explain it why?
2026-04-15 13:11:29.1776258689
On
Largest prime number with all digits different
8.5k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
4
There are 4 best solutions below
4
On
This question depends on the number base being used. It is assumed that the OP meant base 10, but there is nothing special about that (or the answer) except that humans generally have ten fingers. Here are a few others in different bases:
- base 2: 10 (2)
- base 3: 201 (19)
- base 4: 103 (19, using all three non-zero digits always results in a number divisible by 3)
- base 5: 4302 (577, using all four non-zero digits always results in a number divisible by 2)
Higher bases are left as an excerise for the reader!
The answer should be $$p=987654103.$$ As any number using all ten digits would by a multiple of $3$, we are left with only few nine-digit candidates $987654xyz$ that can be checked manually.