Cody

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

Solution 177442

Submitted on 14 Dec 2012 by Christopher
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
%% assert(islychrel(3763));

2   Pass
%% assert(islychrel(5943));

3   Pass
%% assert(islychrel(4709));

4   Pass
%% assert(~islychrel(3664));

5   Pass
%% assert(~islychrel(3692));

6   Pass
%% assert(islychrel(196));

7   Pass
%% assert(islychrel(8619));

8   Pass
%% assert(islychrel(9898));

9   Pass
%% assert(islychrel(9344));

10   Pass
%% assert(islychrel(9884));

11   Pass
%% assert(islychrel(4852));

12   Pass
%% 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   Pass
%% assert(~islychrel(8669));

19   Pass
%% assert(~islychrel(863));

20   Pass
%% assert(~islychrel(5979));

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!