From Fermat's to Brilliant

Let $$x$$ be a prime number larger than 3. What is the probability that $$x|2^{x-1} - 1$$ and $$x | 3^{x-1} - 1$$?

×