Cody

# Problem 45302. Ugly numbers - 03

Solution 2169993

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))

y = 12

Assertion failed.

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

y = 54

Assertion failed.

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

y = 243

Assertion failed.

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

y = 2304

Assertion failed.

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

y = 151875

Assertion failed.

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

y = 5103

Assertion failed.

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

y = 1664

Assertion failed.

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

y = 240737

Assertion failed.