Cody

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

Solution 1809210

Submitted on 7 May 2019 by Aseem Gill
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
x = 1000; y_correct = 233168; assert(isequal(euler001(x),y_correct))

nums = [] nums = 3 nums = 3 5 nums = 3 5 6 nums = 3 5 6 9 nums = 3 5 6 9 10 nums = 3 5 6 9 10 12 nums = 3 5 6 9 10 12 15 nums = 3 5 6 9 10 12 15 18 nums = 3 5 6 9 10 12 15 18 20 nums = 3 5 6 9 10 12 15 18 20 21 nums = 3 5 6 9 10 12 15 18 20 21 24 nums = 3 5 6 9 10 12 15 18 20 21 24 25 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Column 31 66 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 32 66 69 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 33 66 69 70 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 34 66 69 70 72 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 35 66 69 70 72 75 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 36 66 69 70 72 75 78 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 37 66 69 70 72 75 78 80 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 38 66 69 70 72 75 78 80 81 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 39 66 69 70 72 75 78 80 81 84 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 40 66 69 70 72 75 78 80 81 84 85 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 41 66 69 70 72 75 78 80 81 84 85 87 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 42 66 69 70 72 75 78 80 81 84 85 87 90 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 43 66 69 70 72 75 78 80 81 84 85 87 90 93 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 44 66 69 70 72 75 78 80 81 84 85 87 90 93 95 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 45 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 46 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 47 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 48 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 49 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 50 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 51 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 52 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 111 nums = Columns 1 through 30 ...

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

nums = [] nums = 3 nums = 3 5 nums = 3 5 6 nums = 3 5 6 9 nums = 3 5 6 9 10 nums = 3 5 6 9 10 12 nums = 3 5 6 9 10 12 15 nums = 3 5 6 9 10 12 15 18 nums = 3 5 6 9 10 12 15 18 20 nums = 3 5 6 9 10 12 15 18 20 21 nums = 3 5 6 9 10 12 15 18 20 21 24 nums = 3 5 6 9 10 12 15 18 20 21 24 25 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Column 31 66 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 32 66 69 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 33 66 69 70 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 34 66 69 70 72 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 35 66 69 70 72 75 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 36 66 69 70 72 75 78 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 37 66 69 70 72 75 78 80 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 38 66 69 70 72 75 78 80 81 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 39 66 69 70 72 75 78 80 81 84 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 40 66 69 70 72 75 78 80 81 84 85 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 41 66 69 70 72 75 78 80 81 84 85 87 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 42 66 69 70 72 75 78 80 81 84 85 87 90 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 43 66 69 70 72 75 78 80 81 84 85 87 90 93 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 44 66 69 70 72 75 78 80 81 84 85 87 90 93 95 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 45 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 46 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 47 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 48 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 49 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 50 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 51 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 52 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 111 nums = Columns 1 through 30 ...

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

nums = [] nums = 3 nums = 3 5 nums = 3 5 6 nums = 3 5 6 9 nums = 3 5 6 9 10 nums = 3 5 6 9 10 12 nums = 3 5 6 9 10 12 15 nums = 3 5 6 9 10 12 15 18 nums = 3 5 6 9 10 12 15 18 20 nums = 3 5 6 9 10 12 15 18 20 21 nums = 3 5 6 9 10 12 15 18 20 21 24 nums = 3 5 6 9 10 12 15 18 20 21 24 25 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Column 31 66 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 32 66 69 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 33 66 69 70 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 34 66 69 70 72 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 35 66 69 70 72 75 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 36 66 69 70 72 75 78 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 37 66 69 70 72 75 78 80 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 38 66 69 70 72 75 78 80 81 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 39 66 69 70 72 75 78 80 81 84 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 40 66 69 70 72 75 78 80 81 84 85 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 41 66 69 70 72 75 78 80 81 84 85 87 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 42 66 69 70 72 75 78 80 81 84 85 87 90 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 43 66 69 70 72 75 78 80 81 84 85 87 90 93 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 44 66 69 70 72 75 78 80 81 84 85 87 90 93 95 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 45 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 46 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 47 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 48 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 49 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 50 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 51 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 52 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 111 nums = Columns 1 through 30 ...

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

nums = [] nums = 3 nums = 3 5 nums = 3 5 6 nums = 3 5 6 9 nums = 3 5 6 9 10 nums = 3 5 6 9 10 12 nums = 3 5 6 9 10 12 15 nums = 3 5 6 9 10 12 15 18 nums = 3 5 6 9 10 12 15 18 20 nums = 3 5 6 9 10 12 15 18 20 21 nums = 3 5 6 9 10 12 15 18 20 21 24 nums = 3 5 6 9 10 12 15 18 20 21 24 25 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 nums = 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Column 31 66 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 32 66 69 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 33 66 69 70 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 34 66 69 70 72 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 35 66 69 70 72 75 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 36 66 69 70 72 75 78 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 37 66 69 70 72 75 78 80 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 38 66 69 70 72 75 78 80 81 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 39 66 69 70 72 75 78 80 81 84 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 40 66 69 70 72 75 78 80 81 84 85 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 41 66 69 70 72 75 78 80 81 84 85 87 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 42 66 69 70 72 75 78 80 81 84 85 87 90 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 43 66 69 70 72 75 78 80 81 84 85 87 90 93 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 44 66 69 70 72 75 78 80 81 84 85 87 90 93 95 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 45 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 46 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 47 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 48 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 49 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 50 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 51 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 nums = Columns 1 through 30 3 5 6 9 10 12 15 18 20 21 24 25 27 30 33 35 36 39 40 42 45 48 50 51 54 55 57 60 63 65 Columns 31 through 52 66 69 70 72 75 78 80 81 84 85 87 90 93 95 96 99 100 102 105 108 110 111 nums = Columns 1 through 30 ...