Cody

# Problem 45302. Ugly numbers - 03

Solution 2124403

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

y = 1

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

y = 1

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

y = 1

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

y = 1

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

y = 1

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

y = 1

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

y = 1

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

y = 1