Cody

Solution 2068731

Submitted on 25 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
x = 1:6; y_correct = 60; assert(isequal(your_fcn_name(x),y_correct))

v = 1 2 3 4 5 6 a = 6 b = 2 b = 6 b = 12 b = 60 b = 60

2   Pass
x = 1:20; y_correct = 232792560; assert(isequal(your_fcn_name(x),y_correct))

v = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 a = 20 b = 2 b = 6 b = 12 b = 60 b = 60 b = 420 b = 840 b = 2520 b = 2520 b = 27720 b = 27720 b = 360360 b = 360360 b = 360360 b = 720720 b = 12252240 b = 12252240 b = 232792560 b = 232792560