Cody

# Problem 45302. Ugly numbers - 03

Solution 2169991

Submitted on 22 Mar 2020
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   Fail
x = [2,3,5]; n=10; y_correct = 15; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
x = [2,3,5]; n=25; y_correct = 60; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
x = [2,3,5]; n=50; y_correct = 250; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
x = [2,3]; n=50; y_correct = 2592; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
x = [5,3]; n=50; y_correct =164025; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
x = [7,3]; n=24; y_correct = 6561; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

7   Fail
x = [2,13,7]; n=48; y_correct = 1792; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

8   Fail
x = [7,13,17]; n=48; y_correct =261443; assert(isequal(ugly_ugly(x,n),y_correct))

Error in solution: Line: 2 Column: 50 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.