Cody

Solution 1470641

Submitted on 25 Mar 2018 by Gareth Lee
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
N = 1000; y_correct = 0; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 0

2   Pass
N = 1234; y_correct = 13; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 13

3   Pass
N = 12345; y_correct = 280; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 280

4   Pass
N = 123456; y_correct = 1925; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 1925

5   Pass
N = 1234567; y_correct = 13142; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 13142

6   Pass
N = 99999900; y_correct = 586509; assert(isequal(grandPrimeCounter(N),y_correct))

ans = 586509