Cody

# Problem 365. Numbers with prime factors 2, 3 and 5.

Solution 2030425

Submitted on 21 Nov 2019
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
n = 2; A_correct = 2; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2

Matrix index is out of range for deletion. Error in your_fcn_name (line 17) a(8)=[] Error in Test1 (line 3) assert(isequal(your_fcn_name(n),A_correct))

2   Fail
n = 3; A_correct = [2 3]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3

Matrix index is out of range for deletion. Error in your_fcn_name (line 17) a(8)=[] Error in Test2 (line 3) assert(isequal(your_fcn_name(n),A_correct))

3   Fail
n = 4; A_correct = [2 3 4]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3 a = 2 3 4

Matrix index is out of range for deletion. Error in your_fcn_name (line 17) a(8)=[] Error in Test3 (line 3) assert(isequal(your_fcn_name(n),A_correct))

4   Fail
n = 5; A_correct = [2 3 4 5]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3 a = 2 3 4 a = 2 3 4 5

Matrix index is out of range for deletion. Error in your_fcn_name (line 17) a(8)=[] Error in Test4 (line 3) assert(isequal(your_fcn_name(n),A_correct))

5   Fail
n = 10; A_correct = [2 3 4 5 6 8 9 10]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3 a = 2 3 4 a = 2 3 4 5 a = 2 3 4 5 6 a = 2 3 4 5 6 7 a = 2 3 4 5 6 7 8 a = 2 3 4 5 6 7 8 9 a = 2 3 4 5 6 7 8 9 10 a = 2 3 4 5 6 7 8 10 A = 2 3 4 5 6 7 8 10

Assertion failed.

6   Fail
n = 17; A_correct = [2 3 4 5 6 8 9 10 12 15 16]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3 a = 2 3 4 a = 2 3 4 5 a = 2 3 4 5 6 a = 2 3 4 5 6 7 a = 2 3 4 5 6 7 8 a = 2 3 4 5 6 7 8 9 a = 2 3 4 5 6 7 8 9 10 a = 2 3 4 5 6 7 8 9 10 11 a = 2 3 4 5 6 7 8 9 10 11 12 a = 2 3 4 5 6 7 8 9 10 11 12 13 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 a = 2 3 4 5 6 7 8 10 11 12 13 14 15 16 A = 2 3 4 5 6 7 8 10 11 12 13 14 15 16

Assertion failed.

7   Fail
n = 31; A_correct = [2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 30]; assert(isequal(your_fcn_name(n),A_correct))

a = [] a = 2 a = 2 3 a = 2 3 4 a = 2 3 4 5 a = 2 3 4 5 6 a = 2 3 4 5 6 7 a = 2 3 4 5 6 7 8 a = 2 3 4 5 6 7 8 9 a = 2 3 4 5 6 7 8 9 10 a = 2 3 4 5 6 7 8 9 10 11 a = 2 3 4 5 6 7 8 9 10 11 12 a = 2 3 4 5 6 7 8 9 10 11 12 13 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 a = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 a = 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 A = 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Assertion failed.