Cody

# Problem 44306. Is it really a 5?

Solution 2074823

Submitted on 31 Dec 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 = 5; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test1 (line 2) assert(isequal(is_it_really_a_5(n),1))

2   Fail
n = 15; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test2 (line 2) assert(isequal(is_it_really_a_5(n),0))

3   Fail
n = 25; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test3 (line 2) assert(isequal(is_it_really_a_5(n),1))

4   Fail
n = 35; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test4 (line 2) assert(isequal(is_it_really_a_5(n),1))

5   Fail
n = 50; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test5 (line 2) assert(isequal(is_it_really_a_5(n),0))

6   Fail
n = 52; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test6 (line 2) assert(isequal(is_it_really_a_5(n),0))

7   Fail
n = 55; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test7 (line 2) assert(isequal(is_it_really_a_5(n),1))

8   Fail
n = 59; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test8 (line 2) assert(isequal(is_it_really_a_5(n),0))

9   Fail
n = 85; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test9 (line 2) assert(isequal(is_it_really_a_5(n),1))

10   Fail
n = 105; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test10 (line 2) assert(isequal(is_it_really_a_5(n),1))

11   Fail
n = 115; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test11 (line 2) assert(isequal(is_it_really_a_5(n),0))

12   Fail
n = 125; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test12 (line 2) assert(isequal(is_it_really_a_5(n),1))

13   Fail
n = 250; assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test13 (line 2) assert(isequal(is_it_really_a_5(n),0))

14   Fail
n = 500; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test14 (line 2) assert(isequal(is_it_really_a_5(n),1))

15   Fail
n = 555; assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test15 (line 2) assert(isequal(is_it_really_a_5(n),1))

16   Fail
n = 5000; %5,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test16 (line 2) assert(isequal(is_it_really_a_5(n),1))

17   Fail
n = 15000; %15,000 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test17 (line 2) assert(isequal(is_it_really_a_5(n),0))

18   Fail
n = 55555; %55,555 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test18 (line 2) assert(isequal(is_it_really_a_5(n),1))

19   Fail
n = 50000; %50,000 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test19 (line 2) assert(isequal(is_it_really_a_5(n),0))

20   Fail
n = 55000; %55,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test20 (line 2) assert(isequal(is_it_really_a_5(n),1))

21   Fail
n = 50500; %50,500 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test21 (line 2) assert(isequal(is_it_really_a_5(n),1))

22   Fail
n = 50050; %50,050 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test22 (line 2) assert(isequal(is_it_really_a_5(n),0))

23   Fail
n = 50005; %50,005 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test23 (line 2) assert(isequal(is_it_really_a_5(n),1))

24   Fail
n = 500000; %500,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test24 (line 2) assert(isequal(is_it_really_a_5(n),1))

25   Fail
n = 5000000; %5,000,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test25 (line 2) assert(isequal(is_it_really_a_5(n),1))

26   Fail
n = 15000000; %15,000,000 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test26 (line 2) assert(isequal(is_it_really_a_5(n),0))

27   Fail
n = 50000000; %50,000,000 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test27 (line 2) assert(isequal(is_it_really_a_5(n),0))

28   Fail
n = 105000000; %105,000,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test28 (line 2) assert(isequal(is_it_really_a_5(n),1))

29   Fail
n = 50050050; %50,050,050 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test29 (line 2) assert(isequal(is_it_really_a_5(n),0))

30   Fail
n = 50000005; %50,000,005 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test30 (line 2) assert(isequal(is_it_really_a_5(n),1))

31   Fail
n = 50000015; %50,000,015 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test31 (line 2) assert(isequal(is_it_really_a_5(n),0))

32   Fail
n = 500000000; %500,000,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test32 (line 2) assert(isequal(is_it_really_a_5(n),1))

33   Fail
n = 5000000000; %5,000,000,000 assert(isequal(is_it_really_a_5(n),1))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test33 (line 2) assert(isequal(is_it_really_a_5(n),1))

34   Fail
n = 50000000000; %50,000,000,000 assert(isequal(is_it_really_a_5(n),0))

Undefined function 'lenth' for input arguments of type 'char'. Error in is_it_really_a_5 (line 3) a = [repmat('0', [1, 3 - mod(lenth(a), 3)]) a]; Error in Test34 (line 2) assert(isequal(is_it_really_a_5(n),0))