Cody

Solution 1396425

Submitted on 28 Dec 2017 by Dishant Varshney
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))

s = 1 s = 2 s = 3 c = 0 0 3 s = 4 s = 5 c = 0 0 3 0 5 s = 6 c = 0 0 3 0 5 6 s = 7 s = 8 s = 9 c = 0 0 3 0 5 6 0 0 9 s = 10 c = 0 0 3 0 5 6 0 0 9 10 s = 11 s = 12 c = 0 0 3 0 5 6 0 0 9 10 0 12 s = 13 s = 14 s = 15 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 s = 16 s = 17 s = 18 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 s = 19 s = 20 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 s = 21 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 s = 22 s = 23 s = 24 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 s = 25 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 s = 26 s = 27 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 s = 28 s = 29 s = 30 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Column 30 30 s = 31 s = 32 s = 33 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 33 30 0 0 33 s = 34 s = 35 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 35 30 0 0 33 0 35 s = 36 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 36 30 0 0 33 0 35 36 s = 37 s = 38 s = 39 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 39 30 0 0 33 0 35 36 0 0 39 s = 40 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 40 30 0 0 33 0 35 36 0 0 39 40 s = 41 s = 42 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 42 30 0 0 33 0 35 36 0 0 39 40 0 42 s = 43 s = 44 s = 45 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 45 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 s = 46 s = 47 s = 48 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 48 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 s = 49 s = 50 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 50 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 s = 51 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 51 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 s = 52 s = 53 s = 54 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 54 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 s = 55 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 55 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 s = 56 s = 57 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 57 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 s = 58 s = 59 s = 60 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 60 0 60 s = 61 s = 62 s = 63 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 63 0 60 0 0 63 s = 64 s = 65 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 65 0 60 0 0 63 0 65 s = 66 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 66 0 60 0 0 63 0 65 66 s = 67 s = 68 s = 69 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 69 0 60 0 0 63 0 65 66 0 0 69 s = 70 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 70 0 60 0 0 63 0 65 66 0 0 69 70 s = 71 s = 72 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 ...

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

s = 1 s = 2 s = 3 c = 0 0 3 s = 4 s = 5 c = 0 0 3 0 5 s = 6 c = 0 0 3 0 5 6 s = 7 s = 8 s = 9 c = 0 0 3 0 5 6 0 0 9 s = 10 c = 0 0 3 0 5 6 0 0 9 10 s = 11 s = 12 c = 0 0 3 0 5 6 0 0 9 10 0 12 s = 13 s = 14 s = 15 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 s = 16 s = 17 s = 18 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 s = 19 s = 20 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 s = 21 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 s = 22 s = 23 s = 24 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 s = 25 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 s = 26 s = 27 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 s = 28 s = 29 s = 30 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Column 30 30 s = 31 s = 32 s = 33 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 33 30 0 0 33 s = 34 s = 35 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 35 30 0 0 33 0 35 s = 36 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 36 30 0 0 33 0 35 36 s = 37 s = 38 s = 39 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 39 30 0 0 33 0 35 36 0 0 39 s = 40 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 40 30 0 0 33 0 35 36 0 0 39 40 s = 41 s = 42 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 42 30 0 0 33 0 35 36 0 0 39 40 0 42 s = 43 s = 44 s = 45 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 45 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 s = 46 s = 47 s = 48 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 48 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 s = 49 s = 50 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 50 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 s = 51 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 51 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 s = 52 s = 53 s = 54 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 54 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 s = 55 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 55 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 s = 56 s = 57 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 57 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 s = 58 s = 59 s = 60 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 60 0 60 s = 61 s = 62 s = 63 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 63 0 60 0 0 63 s = 64 s = 65 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 65 0 60 0 0 63 0 65 s = 66 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 66 0 60 0 0 63 0 65 66 s = 67 s = 68 s = 69 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 69 0 60 0 0 63 0 65 66 0 0 69 s = 70 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 70 0 60 0 0 63 0 65 66 0 0 69 70 s = 71 s = 72 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 ...

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

s = 1 s = 2 s = 3 c = 0 0 3 s = 4 s = 5 c = 0 0 3 0 5 s = 6 c = 0 0 3 0 5 6 s = 7 s = 8 s = 9 c = 0 0 3 0 5 6 0 0 9 s = 10 c = 0 0 3 0 5 6 0 0 9 10 s = 11 s = 12 c = 0 0 3 0 5 6 0 0 9 10 0 12 s = 13 s = 14 s = 15 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 s = 16 s = 17 s = 18 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 s = 19 s = 20 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 s = 21 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 s = 22 s = 23 s = 24 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 s = 25 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 s = 26 s = 27 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 s = 28 s = 29 s = 30 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Column 30 30 s = 31 s = 32 s = 33 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 33 30 0 0 33 s = 34 s = 35 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 35 30 0 0 33 0 35 s = 36 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 36 30 0 0 33 0 35 36 s = 37 s = 38 s = 39 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 39 30 0 0 33 0 35 36 0 0 39 s = 40 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 40 30 0 0 33 0 35 36 0 0 39 40 s = 41 s = 42 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 42 30 0 0 33 0 35 36 0 0 39 40 0 42 s = 43 s = 44 s = 45 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 45 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 s = 46 s = 47 s = 48 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 48 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 s = 49 s = 50 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 50 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 s = 51 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 51 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 s = 52 s = 53 s = 54 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 54 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 s = 55 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 55 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 s = 56 s = 57 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 57 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 s = 58 s = 59 s = 60 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 60 0 60 s = 61 s = 62 s = 63 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 63 0 60 0 0 63 s = 64 s = 65 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 65 0 60 0 0 63 0 65 s = 66 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 66 0 60 0 0 63 0 65 66 s = 67 s = 68 s = 69 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 69 0 60 0 0 63 0 65 66 0 0 69 s = 70 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 70 0 60 0 0 63 0 65 66 0 0 69 70 s = 71 s = 72 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 ...

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

s = 1 s = 2 s = 3 c = 0 0 3 s = 4 s = 5 c = 0 0 3 0 5 s = 6 c = 0 0 3 0 5 6 s = 7 s = 8 s = 9 c = 0 0 3 0 5 6 0 0 9 s = 10 c = 0 0 3 0 5 6 0 0 9 10 s = 11 s = 12 c = 0 0 3 0 5 6 0 0 9 10 0 12 s = 13 s = 14 s = 15 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 s = 16 s = 17 s = 18 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 s = 19 s = 20 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 s = 21 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 s = 22 s = 23 s = 24 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 s = 25 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 s = 26 s = 27 c = 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 s = 28 s = 29 s = 30 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Column 30 30 s = 31 s = 32 s = 33 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 33 30 0 0 33 s = 34 s = 35 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 35 30 0 0 33 0 35 s = 36 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 36 30 0 0 33 0 35 36 s = 37 s = 38 s = 39 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 39 30 0 0 33 0 35 36 0 0 39 s = 40 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 40 30 0 0 33 0 35 36 0 0 39 40 s = 41 s = 42 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 42 30 0 0 33 0 35 36 0 0 39 40 0 42 s = 43 s = 44 s = 45 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 45 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 s = 46 s = 47 s = 48 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 48 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 s = 49 s = 50 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 50 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 s = 51 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 51 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 s = 52 s = 53 s = 54 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 54 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 s = 55 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 55 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 s = 56 s = 57 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 57 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 s = 58 s = 59 s = 60 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 60 0 60 s = 61 s = 62 s = 63 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 63 0 60 0 0 63 s = 64 s = 65 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 65 0 60 0 0 63 0 65 s = 66 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 66 0 60 0 0 63 0 65 66 s = 67 s = 68 s = 69 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 69 0 60 0 0 63 0 65 66 0 0 69 s = 70 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 48 0 50 51 0 0 54 55 0 57 0 Columns 59 through 70 0 60 0 0 63 0 65 66 0 0 69 70 s = 71 s = 72 c = Columns 1 through 29 0 0 3 0 5 6 0 0 9 10 0 12 0 0 15 0 0 18 0 20 21 0 0 24 25 0 27 0 0 Columns 30 through 58 30 0 0 33 0 35 36 0 0 39 40 0 42 0 0 45 0 0 ...