isBalancedPrime(3) = false;
isBalancedPrime(7) = false;
isBalancedPrime(5) = true; % since (3+7)/2 = 5
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers28
Suggested Problems
-
Make a run-length companion vector
656 Solvers
-
301 Solvers
-
Flip the vector from right to left
10669 Solvers
-
2242 Solvers
-
Spot the First Occurrence of 5
433 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!