2024 SSMO Accuracy Round Problems/Problem 6

Problem

Three six-sided dice are rolled. Then, the product of the three numbers on the top faces in calculated. If the probability of getting the product that is not a perfect square can be expressed as $\frac{m}{n}$ where $m$ and $n$ are relatively prime positive integers, what is $m+n$?

Solution