Sometime ago I discovered the following function for computing primes:
$$ Q(x)=\text{frac} \left (\cfrac{\Gamma(x)}{x} \right )\cfrac{x^2}{x-1}= \begin{cases} x & \small \text{if $x$ is prime} \\ 0 & \small \text{otherwise} \end{cases} $$
where "$\text{frac}$" is fractional part and $\Gamma$ is Gamma function. Is there a way to prove that formula is correct?
Regards