Cody

Solution 188807

Submitted on 10 Jan 2013 by Richard Zapor
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))

ans = 1 Elapsed time is 0.000044 seconds.

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

ans = 5 Elapsed time is 0.000034 seconds.

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

ans = 42 Elapsed time is 0.000150 seconds.

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

ans = 210 Elapsed time is 0.000419 seconds.

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

ans = 3084 Elapsed time is 0.016242 seconds.

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

ans = 4247 Elapsed time is 0.029273 seconds.

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

ans = 4540 Elapsed time is 0.030980 seconds.