Let $x\ge0$ and $x\in\Bbb Z$. I wrote function $a(x)$ that for $x\ge1$ returns prime $\ge7$ or composite of these primes, and for $x=0$ it returns 5 $$a(x) = \frac{9+6(x+\lfloor\frac{\vert x-1\vert}{8}\rfloor+\lfloor\frac{x+1}{8}\rfloor)+(-1)^{x+\lfloor\frac{\vert x-1\vert}{8}\rfloor+\lfloor\frac{x+1}{8}\rfloor}}{2}$$ Then I created formula that finds positions of composite numbers within $a(x)$, where k are positions of numbers within $a(x)$ $$c(x,k)=2a(k)-\lfloor\frac{k}{2}\rfloor-1+(a(k)+\lfloor\frac{k+6}{8}\rfloor+\lfloor\frac{k+2}{8}\rfloor)(\lfloor\frac{x+6}{8}\rfloor+\lfloor\frac{x+2}{8}\rfloor)+(\frac{1}{2}a(k)+\frac{1}{2}+\lfloor\frac{k}{8}\rfloor)(\lfloor\frac{x+5}{8}\rfloor+\lfloor\frac{x+3}{8}\rfloor)+(a(k)+2\lfloor\frac{k+4}{8}\rfloor)\lfloor\frac{x+4}{8}\rfloor+(2a(k)-\lfloor\frac{k}{2}\rfloor-k-1)(\lfloor\frac{x+1}{8}\rfloor+\lfloor\frac{\vert x-1\vert}{8}\rfloor)+(2k+1)\lfloor\frac{x}{8}\rfloor$$ I used these positions to create function s(x) that returns 1 for a prime and 0 for composite number $$s(x)=\vert\text{sgn}(\sum_{k=1}^{q(x)}\sum_{j=0}^7\frac{\vert\lfloor\frac{x+8a(k)-c(k+j,k)}{8a(k)}\rfloor\vert+\lfloor\frac{x+8a(k)-c(k+j,k)}{8a(k)}\rfloor}{2}-\frac{\vert\lfloor\frac{x+8a(k)-c(k+j,k)-1}{8a(k)}\rfloor\vert+\lfloor\frac{x+8a(k)-c(k+j,k)-1}{8a(k)}\rfloor}{2})-1\vert$$ Where $q(x)$ is a function thet gives good approximation to $c(x,x)$ ploted on x-axis, against $x$ ploted on y-axis $$q(x)=\lceil\frac{(\log(x+1))^{\frac{1}{2}}+7(x+1)^{\frac{1}{2}}}{13}\rceil$$ Exemples of $q(x)$ values: $q(10)=2$, $q(10^2)=6$, $q(10^3)=18$, $q(10^4)=55$, $q(10^5)=171$, $q(10^6)=539$, $q(10^7)=1704$
Then I modified function a(x) with s(x), to finally get $$p(x) = \frac{9+6(x*s(x)+\lfloor\frac{\vert x*s(x)-1\vert}{8}\rfloor+\lfloor\frac{x*s(x)+1}{8}\rfloor)+(-1)^{x*s(x)+\lfloor\frac{\vert x*s(x)-1\vert}{8}\rfloor+\lfloor\frac{x*s(x)+1}{8}\rfloor}}{2}$$ This function returns primes and replaces composite numbers with 5.
Now I return to question from the title: Is this formula good enough to write article about it, or not really worth it, because it's too convoluted, require too many calculations or isn't really helpful?