Cody

# Problem 42405. Divisible by 3

Solution 1976992

Submitted on 15 Oct 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
filetext = fileread('divisible_by_3.m'); assert(isempty(strfind(filetext, '*')),'* forbidden') assert(isempty(strfind(filetext, 'mtimes')),'mtimes() forbidden') assert(isempty(strfind(filetext, 'cross')),'cross() forbidden') assert(isempty(strfind(filetext, 'prod')),'prod() forbidden') assert(isempty(strfind(filetext, 'cumprod')),'cumprod() forbidden') assert(isempty(strfind(filetext, 'times')),'times() forbidden') assert(isempty(strfind(filetext, 'mldivide')),'mldivide() forbidden') assert(isempty(strfind(filetext, 'mrdivide')),'mrdivide() forbidden') assert(isempty(strfind(filetext, '/')),'/ forbidden') assert(isempty(strfind(filetext, '\')),'\ forbidden') assert(isempty(strfind(filetext, '^')),'^ forbidden') assert(isempty(strfind(filetext, 'dot')),'dot() forbidden') assert(isempty(strfind(filetext, 'rem')),'rem() forbidden') assert(isempty(strfind(filetext, 'mod')),'mod() forbidden') assert(isempty(strfind(filetext, 'round')),'round() forbidden') assert(isempty(strfind(filetext, 'ceil')),'ceil() forbidden') assert(isempty(strfind(filetext, 'floor')),'floor() forbidden') assert(isempty(strfind(filetext, 'java')),'java forbidden')

/ forbidden

2   Fail
n_str = '12'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 1 a = 1 2 f = 1 y = 1

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test2 (line 2) assert(isequal(divisible_by_3(n_str),1))

3   Fail
n_str = '13'; assert(isequal(divisible_by_3(n_str),0))

a = [] a = 1 a = 1 3 f = 1.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test3 (line 2) assert(isequal(divisible_by_3(n_str),0))

4   Fail
n_str = '222'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 2 a = 2 2 a = 2 2 2 f = 2 y = 1

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test4 (line 2) assert(isequal(divisible_by_3(n_str),1))

5   Fail
n_str = '232'; assert(isequal(divisible_by_3(n_str),0))

a = [] a = 2 a = 2 3 a = 2 3 2 f = 2.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test5 (line 2) assert(isequal(divisible_by_3(n_str),0))

6   Fail
n_str = '223'; assert(isequal(divisible_by_3(n_str),0))

a = [] a = 2 a = 2 2 a = 2 2 3 f = 2.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test6 (line 2) assert(isequal(divisible_by_3(n_str),0))

7   Fail
n_str = '1236127'; assert(isequal(divisible_by_3(n_str),0))

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 6 a = 1 2 3 6 1 a = 1 2 3 6 1 2 a = 1 2 3 6 1 2 7 f = 7.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test7 (line 2) assert(isequal(divisible_by_3(n_str),0))

8   Fail
n_str = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 4 a = 1 2 3 4 5 a = 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 a = 1 2 3 4 5 6 7 8 9 0 1 a = 1 2 3 4 5 6 7 8 9 0 1 2 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Column 31 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 32 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 33 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 34 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 35 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 36 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 37 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 38 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 39 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 40 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 41 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 42 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 43 1 2 3 4 5 6 7 8 9 0 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 44 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 45 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 46 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 47 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 48 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 49 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 50 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 51 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 52 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test8 (line 2) assert(isequal(divisible_by_3(n_str),1))

9   Fail
n_str = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901'; assert(isequal(divisible_by_3(n_str),0))

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 4 a = 1 2 3 4 5 a = 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 a = 1 2 3 4 5 6 7 8 9 0 1 a = 1 2 3 4 5 6 7 8 9 0 1 2 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Column 31 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 32 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 33 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 34 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 35 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 36 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 37 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 38 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 39 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 40 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 41 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 42 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 43 1 2 3 4 5 6 7 8 9 0 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 44 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 45 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 46 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 47 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 48 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 49 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 50 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 51 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 52 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test9 (line 2) assert(isequal(divisible_by_3(n_str),0))

10   Fail
n_str = '123678900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 6 a = 1 2 3 6 7 a = 1 2 3 6 7 8 a = 1 2 3 6 7 8 9 a = 1 2 3 6 7 8 9 0 a = 1 2 3 6 7 8 9 0 0 a = 1 2 3 6 7 8 9 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Column 31 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 32 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 33 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 35 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 37 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 40 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 43 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 51 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test10 (line 2) assert(isequal(divisible_by_3(n_str),1))

11   Fail
n_str = '123678900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000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0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Column 31 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 32 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 33 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 35 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 37 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 40 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 43 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 51 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a = Columns 1 through 30 1 2 3 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test11 (line 2) assert(isequal(divisible_by_3(n_str),0))

12   Fail
n_str = '3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198938095257201065485863278865936153381827968230301952035301852968995773622599413891249721775283479131515574857242454150695950829533116861727855889075098381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774726847104047534646208046684259069491293313677028989152104752162056966024058038150193511253382430035587640247496473263914199272604269922796'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 3 a = 3 1 a = 3 1 4 a = 3 1 4 1 a = 3 1 4 1 5 a = 3 1 4 1 5 9 a = 3 1 4 1 5 9 2 a = 3 1 4 1 5 9 2 6 a = 3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 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 32 9 5 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 33 9 5 0 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 34 9 5 0 2 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 35 9 5 0 2 8 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 36 9 5 0 2 8 8 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 37 9 5 0 2 8 8 4 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 38 9 5 0 2 8 8 4 1 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 39 9 5 0 2 8 8 4 1 9 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 40 9 5 0 2 8 8 4 1 9 7 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 41 9 5 0 2 8 8 4 1 9 7 1 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 42 9 5 0 2 8 8 4 1 9 7 1 6 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 43 9 5 0 2 8 8 4 1 9 7 1 6 9 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 44 9 5 0 2 8 8 4 1 9 7 1 6 9 3 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 45 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 46 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 47 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 48 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 49 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 50 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 1 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 51 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 1 0 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 Columns 31 through 52 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 1 0 5 a = Columns 1 through 30 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test12 (line 2) assert(isequal(divisible_by_3(n_str),1))

13   Fail
n_str = '1010010101011010101001011010100101101010010100101101010011010100101'; assert(isequal(divisible_by_3(n_str),1))

a = [] a = 1 a = 1 0 a = 1 0 1 a = 1 0 1 0 a = 1 0 1 0 0 a = 1 0 1 0 0 1 a = 1 0 1 0 0 1 0 a = 1 0 1 0 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 a = 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Column 31 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 32 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 33 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 34 0 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 35 0 1 0 1 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 36 0 1 0 1 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 37 0 1 0 1 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 38 0 1 0 1 1 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 39 0 1 0 1 1 0 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 40 0 1 0 1 1 0 1 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 41 0 1 0 1 1 0 1 0 1 0 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 42 0 1 0 1 1 0 1 0 1 0 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 43 0 1 0 1 1 0 1 0 1 0 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 44 0 1 0 1 1 0 1 0 1 0 0 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 45 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 46 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 47 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 48 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 49 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 50 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 51 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 1 0 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 Columns 31 through 52 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 a = Columns 1 through 30 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test13 (line 2) assert(isequal(divisible_by_3(n_str),1))

14   Fail
ind = randi(4); switch ind case 1 n_str = '12'; assert(isequal(divisible_by_3(n_str),1)) case 2 n_str = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901'; assert(isequal(divisible_by_3(n_str),0)) case 3 n_str = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; assert(isequal(divisible_by_3(n_str),1)) case 4 n_str = '1236127'; assert(isequal(divisible_by_3(n_str),0)) end

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 6 a = 1 2 3 6 1 a = 1 2 3 6 1 2 a = 1 2 3 6 1 2 7 f = 7.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test14 (line 14) assert(isequal(divisible_by_3(n_str),0))

15   Fail
ind = randi(4); switch ind case 1 n_str = '1010010101011010101001011010100101101010010100101101010011010100101'; assert(isequal(divisible_by_3(n_str),1)) case 2 n_str = '12'; assert(isequal(divisible_by_3(n_str),1)) case 3 n_str = '123678900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001'; assert(isequal(divisible_by_3(n_str),0)) case 4 n_str = '13'; assert(isequal(divisible_by_3(n_str),0)) end

a = [] a = 1 a = 1 3 f = 1.3333 y = 0

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test15 (line 14) assert(isequal(divisible_by_3(n_str),0))

16   Fail
ind = randi(4); switch ind case 1 n_str = '13'; assert(isequal(divisible_by_3(n_str),0)) case 2 n_str = '123678900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; assert(isequal(divisible_by_3(n_str),1)) case 3 n_str = '123678900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001'; assert(isequal(divisible_by_3(n_str),0)) case 4 n_str = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; assert(isequal(divisible_by_3(n_str),1)) end

a = [] a = 1 a = 1 2 a = 1 2 3 a = 1 2 3 4 a = 1 2 3 4 5 a = 1 2 3 4 5 6 a = 1 2 3 4 5 6 7 a = 1 2 3 4 5 6 7 8 a = 1 2 3 4 5 6 7 8 9 a = 1 2 3 4 5 6 7 8 9 0 a = 1 2 3 4 5 6 7 8 9 0 1 a = 1 2 3 4 5 6 7 8 9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7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 33 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 34 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 35 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 36 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 37 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 38 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 39 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 40 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 41 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 42 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 43 1 2 3 4 5 6 7 8 9 0 1 2 3 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 44 1 2 3 4 5 6 7 8 9 0 1 2 3 4 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 45 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 46 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 47 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 48 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 49 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 50 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 51 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 Columns 31 through 52 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 a = Columns 1 through 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7...

Output argument "tf" (and maybe others) not assigned during call to "divisible_by_3". Error in Test16 (line 14) assert(isequal(divisible_by_3(n_str),1))