Given a number, check whether it is prime or not.
If prime output is true, otherwise false.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers154
Suggested Problems
-
24118 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2581 Solvers
-
Getting the indices from a vector
12298 Solvers
-
Return the first and last characters of a character array
12308 Solvers
-
1509 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
As a heads up, you need to return the strings 'true' or 'false' to meet the criteria of the test suite.
Good problem Azhar
thanks vaibhav, btw its all about exploring commands in matlab.
yupp