Cody

# Problem 1082. Lychrel Number Test (Inspired by Project Euler Problem 55)

Solution 2088601

Submitted on 11 Jan 2020
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
assert(islychrel(3763));

Error using assert The condition input argument must be a scalar logical. Error in Test1 (line 1) assert(islychrel(3763));

2   Fail
assert(islychrel(5943));

Error using assert The condition input argument must be a scalar logical. Error in Test2 (line 1) assert(islychrel(5943));

3   Fail
assert(islychrel(4709));

Error using assert The condition input argument must be a scalar logical. Error in Test3 (line 1) assert(islychrel(4709));

4   Pass
assert(~islychrel(3664));

5   Pass
assert(~islychrel(3692));

6   Fail
assert(islychrel(196));

Error using assert The condition input argument must be a scalar logical. Error in Test6 (line 1) assert(islychrel(196));

7   Fail
assert(islychrel(8619));

Error using assert The condition input argument must be a scalar logical. Error in Test7 (line 1) assert(islychrel(8619));

8   Fail
assert(islychrel(9898));

Error using assert The condition input argument must be a scalar logical. Error in Test8 (line 1) assert(islychrel(9898));

9   Fail
assert(islychrel(9344));

Error using assert The condition input argument must be a scalar logical. Error in Test9 (line 1) assert(islychrel(9344));

10   Fail
assert(islychrel(9884));

Error using assert The condition input argument must be a scalar logical. Error in Test10 (line 1) assert(islychrel(9884));

11   Fail
assert(islychrel(4852));

Error using assert The condition input argument must be a scalar logical. Error in Test11 (line 1) assert(islychrel(4852));

12   Fail
assert(islychrel(7491));

Error using assert The condition input argument must be a scalar logical. Error in Test12 (line 1) assert(islychrel(7491));

13   Pass
assert(~islychrel(5832));

14   Pass
assert(~islychrel(7400));

15   Pass
assert(~islychrel(2349));

16   Pass
assert(~islychrel(7349));

17   Pass
assert(~islychrel(9706));

18   Fail
assert(~islychrel(8669));

Assertion failed.

19   Pass
assert(~islychrel(863));

20   Pass
assert(~islychrel(5979));