Cody

Solution 2133975

Submitted on 19 Feb 2020
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(lucky_prime(4),31))

2   Pass
assert(isequal(lucky_prime(10),127))

3   Pass
assert(isequal(lucky_prime(20),349))

4   Pass
assert(isequal(lucky_prime(27),541))

5   Pass
assert(isequal(lucky_prime(39),823))

6   Pass
assert(isequal(lucky_prime(50),1123))

7   Pass
assert(isequal(lucky_prime(60),1579))

8   Pass
assert(isequal(lucky_prime(70),1987))

9   Fail
assert(isequal(lucky_prime(90),2971))

Assertion failed.

10   Fail
assert(isequal(lucky_prime(80),2473))

Assertion failed.

11   Fail
assert(isequal(lucky_prime(200),9403))

Index exceeds the number of array elements (144). Error in lucky_prime (line 7) x(n); Error in Test11 (line 1) assert(isequal(lucky_prime(200),9403))

12   Fail
assert(isequal(lucky_prime(260),12799))

Index exceeds the number of array elements (144). Error in lucky_prime (line 7) x(n); Error in Test12 (line 1) assert(isequal(lucky_prime(260),12799))

13   Fail
assert(isequal(lucky_prime(440),25237))

Index exceeds the number of array elements (144). Error in lucky_prime (line 7) x(n); Error in Test13 (line 1) assert(isequal(lucky_prime(440),25237))

14   Fail
assert(isequal(lucky_prime(600),38461))

Index exceeds the number of array elements (144). Error in lucky_prime (line 7) x(n); Error in Test14 (line 1) assert(isequal(lucky_prime(600),38461))

Suggested Problems

More from this Author145