Cody

Solution 1586848

Submitted on 19 Jul 2018 by Jiahang Li
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = [1 2 3]; y_correct = 2; assert(isequal(prime_product(x),y_correct))

q = 1 2 6 q = 2 6 ans = 2

2   Pass
x = [5 5 5 2]; y_correct = -1; assert(isequal(prime_product(x),y_correct))

q = 5 25 125 250 q = 25 125 250 ans = -1

3   Pass
x = [1 63]; y_correct = -1; assert(isequal(prime_product(x),y_correct))

q = 1 63 q = 63 ans = -1

More from this Author2