# The prime counting function conjecture, help to compute formula

**URL:** <https://community.wolfram.com/t/the-prime-counting-function-conjecture-help-to-compute-formula/16719>\
**Category:** Questions\
**Created:** [September 12, 2020, 9:30pm UTC](https://community.wolfram.com/t/the-prime-counting-function-conjecture-help-to-compute-formula/16719 "2020-09-12T21:30:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [September 12, 2020, 9:30pm UTC](https://community.wolfram.com/t/the-prime-counting-function-conjecture-help-to-compute-formula/16719/1 "2020-09-12T21:30:03Z")

</div>

I was wondering if somebody can be kind enough to test this conjecture with a large enough, say x\>50, using a powerful computer and Mathematica:

\pi(x) \sim -16\sum \_{h=1}^{\infty}\frac{x^{2h+1}}{2h+1}\sum \_{i=1}^h \log\zeta(2i)\sum \_{v=i}^{h}\frac{(-1)^{h-v}(4\pi )^{2h-2v}}{\zeta(2v-2i)(2h+2-2v)!} \text{, if }x\text{ is sufficiently large.}

Note this formula assumes 1 is not a prime, as it should. Notice that x=50 will require increasing the precision and the number of terms, M.

```
$MaxExtraPrecision = 500; M = 230; x = 12; 
  N[{PrimePi[x], x1 = -16*Sum[(x^(2*h + 1)/(2*h + 1))*
              Sum[Log[Zeta[2*i]]*Sum[((-1)^(h - v)*(4*Pi)^(2*h - 2*v))/
                      (Zeta[2*v - 2*i]*(2*h + 2 - 2*v)!), {v, i, 
          h}], {i, 1, h}], 
            {h, 1, M}]}, 10]

```

The reasoning behind it can be found [here](https://www.researchgate.net/publication/333393877_An_Exact_Formula_for_the_Prime_Counting_Function).

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [September 13, 2020, 6:59pm UTC](https://community.wolfram.com/t/the-prime-counting-function-conjecture-help-to-compute-formula/16719/2 "2020-09-13T18:59:28Z")

</div>

Tips on how to improve the speed of the formula also welcome.
