Cody

Solution 570110

Submitted on 30 Jan 2015 by Zikobrelli
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
%% n = 2; A_correct = 2; assert(isequal(your_fcn_name(n),A_correct))

A = [] A = 1 A = 1 2 A = 2

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

A = [] A = 1 A = 1 3 A = 1 3 2 A = 2 3

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

A = [] A = 1 A = 1 3 A = 1 3 2 A = 1 3 2 4 A = 2 3 4

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

A = [] A = 1 A = 1 5 A = 1 5 3 A = 1 5 3 2 A = 1 5 3 2 4 A = 2 3 4 5

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

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

6   Pass
%% 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 = 1 A = 1 5 A = 1 5 3 A = 1 5 3 15 A = 1 5 3 15 9 A = 1 5 3 15 9 2 A = 1 5 3 15 9 2 10 A = 1 5 3 15 9 2 10 6 A = 1 5 3 15 9 2 10 6 4 A = 1 5 3 15 9 2 10 6 4 12 A = 1 5 3 15 9 2 10 6 4 12 8 A = 1 5 3 15 9 2 10 6 4 12 8 16 A = 2 3 4 5 6 8 9 10 12 15 16

7   Pass
%% 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 = 1 A = 1 5 A = 1 5 25 A = 1 5 25 3 A = 1 5 25 3 15 A = 1 5 25 3 15 9 A = 1 5 25 3 15 9 27 A = 1 5 25 3 15 9 27 2 A = 1 5 25 3 15 9 27 2 10 A = 1 5 25 3 15 9 27 2 10 6 A = 1 5 25 3 15 9 27 2 10 6 30 A = 1 5 25 3 15 9 27 2 10 6 30 18 A = 1 5 25 3 15 9 27 2 10 6 30 18 4 A = 1 5 25 3 15 9 27 2 10 6 30 18 4 20 A = 1 5 25 3 15 9 27 2 10 6 30 18 4 20 12 A = 1 5 25 3 15 9 27 2 10 6 30 18 4 20 12 8 A = Columns 1 through 16 1 5 25 3 15 9 27 2 10 6 30 18 4 20 12 8 Column 17 24 A = Columns 1 through 16 1 5 25 3 15 9 27 2 10 6 30 18 4 20 12 8 Columns 17 through 18 24 16 A = Columns 1 through 16 2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 Column 17 30

Suggested Problems

More from this Author2