Cody

Solution 1969373

Submitted on 9 Oct 2019
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   Fail
n_min = 60; n_max = 1000; y_correct = [151,157,251,257,353]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 151 0 0 0 0 p5 = 151 157 0 0 0 p5 = 151 157 251 0 0 p5 = 151 157 251 257 0 p5 = 151 157 251 257 353

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test1 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

2   Fail
n_min = 60; n_max = 300; y_correct = -1; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 151 0 0 0 0 p5 = 151 157 0 0 0 p5 = 151 157 251 0 0 p5 = 151 157 251 257 0

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test2 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

3   Fail
n_min = 1; n_max = 200; y_correct = [5,53,59,151,157]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 5 0 0 0 0 p5 = 5 53 0 0 0 p5 = 5 53 59 0 0 p5 = 5 53 59 151 0 p5 = 5 53 59 151 157

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test3 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

4   Fail
n_min = 1; n_max = 100; y_correct = -1; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 5 0 0 0 0 p5 = 5 53 0 0 0 p5 = 5 53 59 0 0

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test4 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

5   Fail
n_min = 500; n_max = 600; y_correct = [503,509,521,523,541]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 503 0 0 0 0 p5 = 503 509 0 0 0 p5 = 503 509 521 0 0 p5 = 503 509 521 523 0 p5 = 503 509 521 523 541

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test5 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

6   Fail
n_min = 500; n_max = 555; y_correct = [503,509,521,523,541]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 503 0 0 0 0 p5 = 503 509 0 0 0 p5 = 503 509 521 0 0 p5 = 503 509 521 523 0 p5 = 503 509 521 523 541

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test6 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

7   Fail
n_min = 500; n_max = 500000000; y_correct = [503,509,521,523,541]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 503 0 0 0 0 p5 = 503 509 0 0 0 p5 = 503 509 521 0 0 p5 = 503 509 521 523 0 p5 = 503 509 521 523 541

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test7 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

8   Fail
n_min = 5000; n_max = 5020; y_correct = -1; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 5003 0 0 0 0 p5 = 5003 5009 0 0 0 p5 = 5003 5009 5011 0 0

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test8 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

9   Fail
n_min = 5000; n_max = 5200; y_correct = [5003,5009,5011,5021,5023]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 5003 0 0 0 0 p5 = 5003 5009 0 0 0 p5 = 5003 5009 5011 0 0 p5 = 5003 5009 5011 5021 0 p5 = 5003 5009 5011 5021 5023

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test9 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

10   Fail
n_min = 5000; n_max = 55555555; y_correct = [5003,5009,5011,5021,5023]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 5003 0 0 0 0 p5 = 5003 5009 0 0 0 p5 = 5003 5009 5011 0 0 p5 = 5003 5009 5011 5021 0 p5 = 5003 5009 5011 5021 5023

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test10 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

11   Fail
n_min = 55555; n_max = 56789; y_correct = [55579,55589,55603,55609,55619]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 55579 0 0 0 0 p5 = 55579 55589 0 0 0 p5 = 55579 55589 55603 0 0 p5 = 55579 55589 55603 55609 0 p5 = 55579 55589 55603 55609 55619

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test11 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))

12   Fail
n_min = 987654321; n_max = 988777666; y_correct = [987654323,987654337,987654347,987654359,987654361]; assert(isequal(five_primes(n_min,n_max),y_correct))

p5 = 987654323 0 0 0 0 p5 = 987654323 987654337 0 0 0 p5 = 987654323 987654337 987654347 0 0 p5 = 987654323 987654337 987654347 987654359 0 p5 = 987654323 987654337 987654347 987654359 987654361

Output argument "y" (and maybe others) not assigned during call to "five_primes". Error in Test12 (line 4) assert(isequal(five_primes(n_min,n_max),y_correct))