Let p be an odd prime and x be an indeterminate. Recently, Sun conjecture that \(\begin{aligned} \det \left[ x+\left( \frac{j-i}{p}\right) \right] _{0\le i,j\le \frac{p-1}{2}}={\left\{ \begin{array}{ll} (\frac{2}{p})pb_px-a_p & \text{ if }\ p\equiv 1\ ({\textrm{mod}}\ 4),\\ 1 & \text{ if }\ p\equiv 3\ ({\textrm{mod}}\ 4), \end{array}\right. } \end{aligned}\) where \(a_p\) and \(b_p\) are rational numbers related to the fundamental unit and class number of the real quadratic field \(\mathbb {Q}(\sqrt{p})\) . In this paper, we confirm this conjecture based on Vsemirnov’s decomposition of Chapman’s “evil determinant”.