Cody

Problem 46111. Evaluate the prime zeta function

Solution 2816749

Submitted on 10 Aug 2020 by Tim
  • Size: 15
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s = 1.39943332872633; P_rounded = 1; assert(isequal(round(PrimeZeta(s),4),P_rounded))

2   Pass
s = 2; P_correct = 0.4522474200410654985065; assert(abs(PrimeZeta(s)-P_correct) < 2e-10)

3   Pass
s = 3; P_correct = 0.1747626392994435364; assert(abs(PrimeZeta(s)-P_correct) < 1e-12)

4   Pass
s = 4; P_correct = 0.07699313976424684494; assert(abs(PrimeZeta(s)-P_correct) < 1e-13)

5   Pass
s = 5; P_correct = 0.0357550174839242571; assert(abs(PrimeZeta(s)-P_correct) < 1e-15)

6   Pass
s = 9; P_correct = 0.002004467574962450; assert(abs(PrimeZeta(s)-P_correct) < 1e-15)

Suggested Problems

More from this Author48

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!