Cody

Solution 2064564

Submitted on 20 Dec 2019 by Asif Newaz
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 = 10; y_correct = 7; assert(isequal(max_prime(n),y_correct))

mpn = 2 3 5 7 ans = 7

2   Pass
n = 30; y_correct = 29; assert(isequal(max_prime(n),y_correct))

mpn = 2 3 5 7 11 13 17 19 23 29 ans = 29