Cody

# Problem 45342. Sieve of Eratosthenes

Solution 2134271

Submitted on 20 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   Fail
assert(isequal(lucky_prime(60),1579))

Index exceeds the number of array elements (50). Error in lucky_prime (line 3) l(n); Error in Test7 (line 1) assert(isequal(lucky_prime(60),1579))

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

Index exceeds the number of array elements (50). Error in lucky_prime (line 3) l(n); Error in Test8 (line 1) assert(isequal(lucky_prime(70),1987))

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

Index exceeds the number of array elements (50). Error in lucky_prime (line 3) l(n); Error in Test9 (line 1) assert(isequal(lucky_prime(90),2971))

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

Index exceeds the number of array elements (50). Error in lucky_prime (line 3) l(n); Error in Test10 (line 1) assert(isequal(lucky_prime(80),2473))

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

Index exceeds the number of array elements (50). Error in lucky_prime (line 3) l(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 (50). Error in lucky_prime (line 3) l(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 (50). Error in lucky_prime (line 3) l(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 (50). Error in lucky_prime (line 3) l(n); Error in Test14 (line 1) assert(isequal(lucky_prime(600),38461))