Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Correct

76Size
Leading solution size is 22.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
assert(isequal(euler341(1),1))

                    
2
Pass
 
%%
assert(isequal(euler341(10),5))
Elapsed time is 0.000055 seconds.
3
Pass
 
%%
assert(isequal(euler341(310),42))
Elapsed time is 0.000111 seconds.
4
Pass
 
%%
assert(isequal(euler341(4242),210))
Elapsed time is 0.000417 seconds.
5
Pass
 
%%
assert(isequal(euler341(328509),3084))
Elapsed time is 0.016624 seconds.
6
Pass
 
%%
assert(isequal(euler341(551368),4247))
Elapsed time is 0.034932 seconds.
7
Pass
 
%%
assert(isequal(euler341(614125),4540))
Elapsed time is 0.032119 seconds.