The formula I am having some problems is this one $$ f\left( x \right) =\sin \left(\frac { 2(x-3)!-x+1 }{ 2x } \pi \right) =\sin \left(\frac { 2\,\Gamma (x-2)-x+1 }{ 2x } \pi \right) $$
Although this might seem too general it is a variation of Wilson's theorem which (in my opinion) has slightly better properties than the general Wilson's theorem formula.
If you look at the graph you'll see that the values for $f(x)$ where $x$ is prime is 0 while for $x$ nonprime tends to be converging toward $-1$ and in almost a perfect fashion and rapidly. My idea is this: turn this into infinite Taylor series and add $x$ to it, that way we could get a good approximation of prime counting function to infinity.
In other words:
$$ \lim _{ x\rightarrow \infty }{ x+\sum _{ n\epsilon N }^{ }{ f(n) } } =\lim _{ x\rightarrow \infty }{ \Pi (x) } $$
The problem I am having is actually converting it into Taylor series. I really didn't have any experience with this kind of equations so I was wondering is there any trick to do this, or should I just let this one pass
Edited: Changed the formula, forgot to multiply by $\pi$