Cody

# Problem 230. Project Euler: Problem 1, Multiples of 3 and 5

Solution 2026652

Submitted on 18 Nov 2019
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
x = 1000; y_correct = 233168; assert(isequal(euler001(x),y_correct))

a = 999

Unrecognized function or variable 'y'. Error in euler001 (line 3) b=y-mod(x,5) Error in Test1 (line 3) assert(isequal(euler001(x),y_correct))

2   Fail
x = 4000; y_correct = 3732668; assert(isequal(euler001(x),y_correct))

a = 3999

Unrecognized function or variable 'y'. Error in euler001 (line 3) b=y-mod(x,5) Error in Test2 (line 3) assert(isequal(euler001(x),y_correct))

3   Fail
x = 2340; y_correct = 1276470; assert(isequal(euler001(x),y_correct))

a = 2340

Unrecognized function or variable 'y'. Error in euler001 (line 3) b=y-mod(x,5) Error in Test3 (line 3) assert(isequal(euler001(x),y_correct))

4   Fail
x = 2341; y_correct = 1278810; assert(isequal(euler001(x),y_correct))

a = 2340

Unrecognized function or variable 'y'. Error in euler001 (line 3) b=y-mod(x,5) Error in Test4 (line 3) assert(isequal(euler001(x),y_correct))