Check if the input is a strong prime - MATLAB Cody - MATLAB Central

Problem 47803. Check if the input is a strong prime

Difficulty:Rate
More information about strong primes on Wikipedia
isStrongPrime(11) = 1;
isStrongPrime(2) = 0;
isStrongPrime(9) = 0;
isStrongPrime(227) = 1;

Solution Stats

53.06% Correct | 46.94% Incorrect
Last Solution submitted on Mar 20, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers25

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!
Go to top of page