Cody

Solution 2104885

Submitted on 24 Jan 2020 at 17:28 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 = 0; y_correct = 0; assert(isequal(isFactorion(x),y_correct))

y = 0 a = 1 b = 1

2   Pass
x = 1; y_correct = 1; assert(isequal(isFactorion(x),y_correct))

y = 1 a = 1 b = 1

3   Pass
x = 2; y_correct = 1; assert(isequal(isFactorion(x),y_correct))

y = 2 a = 2 b = 2

4   Pass
x = 145; y_correct = 1; assert(isequal(isFactorion(x),y_correct))

y = 1 4 5 a = 1 24 120 b = 145

5   Pass
x = 666; y_correct = 0; assert(isequal(isFactorion(x),y_correct))

y = 6 6 6 a = 720 720 720 b = 2160

6   Pass
x = 1729; y_correct = 0; assert(isequal(isFactorion(x),y_correct))

y = 1 7 2 9 a = 1 5040 2 362880 b = 367923

7   Pass
x = 40585; y_correct = 1; assert(isequal(isFactorion(x),y_correct))

y = 4 0 5 8 5 a = 24 1 120 40320 120 b = 40585