If the number is a prime, roll out!
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers40
Suggested Problems
-
Which values occur exactly three times?
5248 Solvers
-
Return the first and last characters of a character array
12295 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14168 Solvers
-
610 Solvers
-
Replace every 3rd element in a vector with 4
267 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
what do u mean??
If the input is prime, then add it to a sum that increases with each call of the function.