Cody

Solution 1695751

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 = 4 4 4 5 5 5 ind = 5 ans = 33

Assertion failed.

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

vec = 2 2 3 3 ind = 4 vec = 4 4 4 5 5 5 ind = 6 vec = 6 6 6 6 7 7 7 7 ind = 8 vec = 8 8 8 8 8 9 9 9 9 9 ind = 10 vec = 10 10 10 10 10 10 11 11 11 11 11 11 ind = 12 vec = 12 12 12 12 12 12 12 13 13 13 13 13 13 13 ind = 14 vec = 14 14 14 14 14 14 14 14 15 15 15 15 15 15 15 15 ind = 16 vec = 16 16 16 16 16 16 16 16 16 17 17 17 17 17 17 17 17 17 ind = 18 vec = 18 18 18 18 18 18 18 18 18 18 19 19 19 19 19 19 19 19 19 19 ind = 20 vec = 20 20 20 20 20 20 20 20 20 20 20 21 21 21 21 21 21 21 21 21 21 21 ind = 22 vec = 22 22 22 22 22 22 22 22 22 22 22 22 23 23 23 23 23 23 23 23 23 23 23 23 ind = 24 vec = 24 24 24 24 24 24 24 24 24 24 24 24 24 25 25 25 25 25 25 25 25 25 25 25 25 25 ind = 26 vec = 26 26 26 26 26 26 26 26 26 26 26 26 26 26 27 27 27 27 27 27 27 27 27 27 27 27 27 27 ind = 28 vec = 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 ind = 30 vec = Columns 1 through 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 31 31 31 31 31 31 31 31 31 31 Columns 31 through 32 31 31 ind = 32 vec = Columns 1 through 30 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 33 33 33 33 33 33 33 33 33 33 33 33 33 Columns 31 through 34 33 33 33 33 ind = 34 vec = Columns 1 through 30 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 35 35 35 35 35 35 35 35 35 35 35 35 Columns 31 through 36 35 35 35 35 35 35 ind = 5 ans = 6851

Assertion failed.

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

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

Assertion failed.

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

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

Assertion failed.

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

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

Assertion failed.

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

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

Assertion failed.