Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
p = 233;
y_correct = true;
assert(isequal(your_fcn_name(p),y_correct))
tf =
logical
1
|
2 | Pass |
p = 23;
y_correct14 = true;
assert(isequal(your_fcn_name(p),y_correct14))
tf =
logical
1
|
3 | Pass |
p = 22;
y_correct14 = false;
assert(isequal(your_fcn_name(p),y_correct14))
tf =
0
|
4 | Pass |
p = 1 % p must also be a prime number !!
y_correct1t = false;
assert(isequal(your_fcn_name(p),y_correct1t))
p =
1
tf =
0
|
5 | Pass |
p = 14 % p must also be a prime number !!
correct1t = false;
assert(isequal(your_fcn_name(p),correct1t))
p =
14
tf =
0
|
6 | Pass |
p = 29
correct1tp = true;
assert(isequal(your_fcn_name(p),correct1tp))
p =
29
tf =
logical
1
|
Renaming a field in a structure array
731 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
325 Solvers
Magic is simple (for beginners)
2749 Solvers
250 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!