Cody

Solution 1695748

Submitted on 19 Dec 2018
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

2   Fail
assert(isequal(euler341(10),5))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 3 ans = 19

Assertion failed.

3   Fail
assert(isequal(euler341(310),42))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 6 vec = 2 2 2 2 3 3 3 3 ind = 8 vec = 2 2 2 2 2 3 3 3 3 3 ind = 10 vec = 2 2 2 2 2 2 3 3 3 3 3 3 ind = 12 vec = 2 2 2 2 2 2 2 3 3 3 3 3 3 3 ind = 14 vec = 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 ind = 16 vec = 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 ind = 18 vec = 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 ind = 20 vec = 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 ind = 22 vec = 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 ind = 24 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 26 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 28 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 30 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 32 3 3 ind = 32 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 34 3 3 3 3 ind = 9 ans = 724

Assertion failed.

4   Fail
assert(isequal(euler341(4242),210))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 6 vec = 2 2 2 2 3 3 3 3 ind = 8 vec = 2 2 2 2 2 3 3 3 3 3 ind = 10 vec = 2 2 2 2 2 2 3 3 3 3 3 3 ind = 12 vec = 2 2 2 2 2 2 2 3 3 3 3 3 3 3 ind = 14 vec = 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 ind = 16 vec = 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 ind = 18 vec = 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 ind = 20 vec = 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 ind = 22 vec = 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 ind = 24 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 26 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 28 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 30 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 32 3 3 ind = 32 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 34 3 3 3 3 ind = 34 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 36 3 3 3 3 3 3 ind = 36 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 38 3 3 3 3 3 3 3 3 ind = 38 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 Columns 31 through 40 3 3 3 3 3 3 3 3 3 3 ind = 40 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 Columns 31 through 42 3 3 3 3 3 3 3 3 3 3 3 3 ind = 42 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 Columns 31 through 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 44 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 Columns 31 through 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 46 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 Columns 31 through 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 48 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 Columns 31 through 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 50 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 Columns 31 through 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 52 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 Columns 31 through 54 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 54 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 Columns 31 through 56 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 56 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 Columns 31 through 58 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 58 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 60 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 62 3 3 ind = 62 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 64 3 3 3 3 ind = 64 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 66 3 3 3 3 3 3 ind = 66 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 68 3 3 3 3 3 3 3 3 ind = 68 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 70 3 3 3 3 3 3 3 3 3 3 ind = 70 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

Assertion failed.

5   Fail
assert(isequal(euler341(328509),3084))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 6 vec = 2 2 2 2 3 3 3 3 ind = 8 vec = 2 2 2 2 2 3 3 3 3 3 ind = 10 vec = 2 2 2 2 2 2 3 3 3 3 3 3 ind = 12 vec = 2 2 2 2 2 2 2 3 3 3 3 3 3 3 ind = 14 vec = 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 ind = 16 vec = 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 ind = 18 vec = 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 ind = 20 vec = 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 ind = 22 vec = 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 ind = 24 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 26 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 28 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 30 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 32 3 3 ind = 32 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 34 3 3 3 3 ind = 34 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 36 3 3 3 3 3 3 ind = 36 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 38 3 3 3 3 3 3 3 3 ind = 38 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 Columns 31 through 40 3 3 3 3 3 3 3 3 3 3 ind = 40 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 Columns 31 through 42 3 3 3 3 3 3 3 3 3 3 3 3 ind = 42 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 Columns 31 through 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 44 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 Columns 31 through 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 46 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 Columns 31 through 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 48 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 Columns 31 through 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 50 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 Columns 31 through 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 52 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 Columns 31 through 54 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 54 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 Columns 31 through 56 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 56 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 Columns 31 through 58 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 58 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 60 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 62 3 3 ind = 62 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 64 3 3 3 3 ind = 64 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 66 3 3 3 3 3 3 ind = 66 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 68 3 3 3 3 3 3 3 3 ind = 68 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 70 3 3 3 3 3 3 3 3 3 3 ind = 70 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

Assertion failed.

6   Fail
assert(isequal(euler341(551368),4247))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 6 vec = 2 2 2 2 3 3 3 3 ind = 8 vec = 2 2 2 2 2 3 3 3 3 3 ind = 10 vec = 2 2 2 2 2 2 3 3 3 3 3 3 ind = 12 vec = 2 2 2 2 2 2 2 3 3 3 3 3 3 3 ind = 14 vec = 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 ind = 16 vec = 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 ind = 18 vec = 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 ind = 20 vec = 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 ind = 22 vec = 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 ind = 24 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 26 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 28 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 30 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 32 3 3 ind = 32 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 34 3 3 3 3 ind = 34 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 36 3 3 3 3 3 3 ind = 36 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 38 3 3 3 3 3 3 3 3 ind = 38 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 Columns 31 through 40 3 3 3 3 3 3 3 3 3 3 ind = 40 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 Columns 31 through 42 3 3 3 3 3 3 3 3 3 3 3 3 ind = 42 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 Columns 31 through 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 44 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 Columns 31 through 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 46 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 Columns 31 through 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 48 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 Columns 31 through 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 50 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 Columns 31 through 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 52 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 Columns 31 through 54 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 54 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 Columns 31 through 56 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 56 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 Columns 31 through 58 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 58 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 60 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 62 3 3 ind = 62 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 64 3 3 3 3 ind = 64 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 66 3 3 3 3 3 3 ind = 66 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 68 3 3 3 3 3 3 3 3 ind = 68 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 70 3 3 3 3 3 3 3 3 3 3 ind = 70 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

Assertion failed.

7   Fail
assert(isequal(euler341(614125),4540))

vec = 2 2 3 3 ind = 4 vec = 2 2 2 3 3 3 ind = 6 vec = 2 2 2 2 3 3 3 3 ind = 8 vec = 2 2 2 2 2 3 3 3 3 3 ind = 10 vec = 2 2 2 2 2 2 3 3 3 3 3 3 ind = 12 vec = 2 2 2 2 2 2 2 3 3 3 3 3 3 3 ind = 14 vec = 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 ind = 16 vec = 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 ind = 18 vec = 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 ind = 20 vec = 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 ind = 22 vec = 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 ind = 24 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 26 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 28 vec = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 30 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 32 3 3 ind = 32 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 34 3 3 3 3 ind = 34 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 36 3 3 3 3 3 3 ind = 36 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 Columns 31 through 38 3 3 3 3 3 3 3 3 ind = 38 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 Columns 31 through 40 3 3 3 3 3 3 3 3 3 3 ind = 40 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 Columns 31 through 42 3 3 3 3 3 3 3 3 3 3 3 3 ind = 42 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 Columns 31 through 44 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 44 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 Columns 31 through 46 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 46 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 Columns 31 through 48 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 48 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 Columns 31 through 50 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 50 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 Columns 31 through 52 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 52 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 Columns 31 through 54 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 54 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 Columns 31 through 56 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 56 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 Columns 31 through 58 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 58 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ind = 60 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 62 3 3 ind = 62 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 64 3 3 3 3 ind = 64 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 66 3 3 3 3 3 3 ind = 66 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 68 3 3 3 3 3 3 3 3 ind = 68 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Columns 61 through 70 3 3 3 3 3 3 3 3 3 3 ind = 70 vec = Columns 1 through 30 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Columns 31 through 60 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

Assertion failed.