Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Correct

41Size
Leading solution size is 38.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
assert(islychrel(3763));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
2
Pass
 
%%
assert(islychrel(5943));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
3
Pass
 
%%
assert(islychrel(4709));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
4
Pass
 
%%
assert(~islychrel(3664));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
5
Pass
 
%%
assert(~islychrel(3692));
k =
     2
k =
     3
6
Pass
 
%%
assert(islychrel(196));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
7
Pass
 
%%
assert(islychrel(8619));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
8
Pass
 
%%
assert(islychrel(9898));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
9
Pass
 
%%
assert(islychrel(9344));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
10
Pass
 
%%
assert(islychrel(9884));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
11
Pass
 
%%
assert(islychrel(4852));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
12
Pass
 
%%
assert(islychrel(7491));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
k =
    22
k =
    23
k =
    24
k =
    25
k =
    26
k =
    27
k =
    28
k =
    29
k =
    30
k =
    31
k =
    32
k =
    33
k =
    34
k =
    35
k =
    36
k =
    37
k =
    38
k =
    39
k =
    40
k =
    41
k =
    42
k =
    43
k =
    44
k =
    45
k =
    46
k =
    47
k =
    48
k =
    49
k =
    50
k =
    51
13
Pass
 
%%
assert(~islychrel(5832));
k =
     2
k =
     3
k =
     4
14
Pass
 
%%
assert(~islychrel(7400));
k =
     2
15
Pass
 
%%
assert(~islychrel(2349));
k =
     2
k =
     3
k =
     4
16
Pass
 
%%
assert(~islychrel(7349));
k =
     2
k =
     3
k =
     4
k =
     5
17
Pass
 
%%
assert(~islychrel(9706));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
18
Pass
 
%%
assert(~islychrel(8669));
k =
     2
k =
     3
k =
     4
k =
     5
k =
     6
k =
     7
k =
     8
k =
     9
k =
    10
k =
    11
k =
    12
k =
    13
k =
    14
k =
    15
k =
    16
k =
    17
k =
    18
k =
    19
k =
    20
k =
    21
19
Pass
 
%%
assert(~islychrel(863));
k =
     2
k =
     3
20
Pass
 
%%
assert(~islychrel(5979));
k =
     2
k =
     3
k =
     4
k =
     5