J1 and J2 compute Riemann's prime counting function. J1 does not converge properly in Li_sum. Please let me know, if you understand why this does not work - I could not resolve this.
J2 uses an alternative formula and provides good results.
run J2(100) to approximate the number of primes <= 200.
Thomas (2023). two ways to compute Riemanns prime counting function (https://www.mathworks.com/matlabcentral/fileexchange/89564-two-ways-to-compute-riemanns-prime-counting-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!