Problem 47803. Check if the input is a strong prime
More information about strong primes on Wikipedia
isStrongPrime(11) = 1;
isStrongPrime(2) = 0;
isStrongPrime(9) = 0;
isStrongPrime(227) = 1;
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers22
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1791 Solvers
-
Count consecutive 0's in between values of 1
397 Solvers
-
374 Solvers
-
Find the next Fibonacci number
549 Solvers
-
337 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!