Cody

Solution 188932

Submitted on 10 Jan 2013
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(isequal(euler341(1),1))

a = 1 y = 1

2   Fail
%% assert(isequal(euler341(10),5))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.

3   Fail
%% assert(isequal(euler341(310),42))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.

4   Fail
%% assert(isequal(euler341(4242),210))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.

5   Fail
%% assert(isequal(euler341(328509),3084))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.

6   Fail
%% assert(isequal(euler341(551368),4247))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.

7   Fail
%% assert(isequal(euler341(614125),4540))

Error: Attempted to access a(2); index out of bounds because numel(a)=1.