Problem 47798. Check if the input is a balanced prime

More about Balanced Primes on Wikipedia.
isBalancedPrime(3) = false;
isBalancedPrime(7) = false;
isBalancedPrime(5) = true; % since (3+7)/2 = 5

Solution Stats

42.65% Correct | 57.35% Incorrect
Last Solution submitted on Oct 11, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers27

Suggested Problems

More from this Author92

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!