Cody

Solution 1671893

Submitted on 11 Nov 2018 by Rafael Hernandez-Walls
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
x = 1; y_correct = 0; assert(isequal(Nprimes(x),y_correct))

2   Pass
x = -1; y_correct = 0; assert(isequal(Nprimes(x),y_correct))

3   Pass
x = 10; y_correct = 4; assert(isequal(Nprimes(x),y_correct))

4   Pass
x = 1e3; y_correct = 168; assert(isequal(Nprimes(x),y_correct))

5   Pass
x = 1e4; y_correct = 1229; assert(isequal(Nprimes(x),y_correct))

6   Pass
x = 1e8; y_correct = 5761455; assert(isequal(Nprimes(x),y_correct))

7   Pass
x = -1e8; y_correct = 0; assert(isequal(Nprimes(x),y_correct))

Suggested Problems