I am trying to plot Dusart's sum of prime approximation [ref 1]:
However I'm not getting the correct sum but very large incorrect numbers. Some things come to mind:
1) I'm entering the acsii version into c as (N*N*0.5*(log(N)+log(log(N))-(3/2)+1) where the log is natural log.
2) I've not understood correctly that lnlnn is log(log(N))
3) just lost!
Furthermore using Landau's approximation for the same thing:
$$S_n =\frac 12 n^2 \, \log(n) + O\left(n^2 \log(\log(n))\right)$$
I cannot interpret the big O correctly as once again using ascii to compute in c the big O as follows, (NN(log(log(N))) ).
I get very large incorrect numbers for the big O that should be smaller than the main term.
[ref 1] ON THE ASYMPTOTIC EXPANSION OF THE SUM OF THE FIRST n PRIMES Nilotpal Kanti Sinha November 9, 2010
https://ia801009.us.archive.org/13/items/arxiv-1011.1667/1011.1667.pdf

