Cody

# Problem 45302. Ugly numbers - 03

Solution 2133429

Submitted on 19 Feb 2020 by Athi
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))

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

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

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

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

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

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

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

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!