Problem 1722. Find the next prime number
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
GeeTwo
on 20 Jun 2022
Oh, I like that one! Iterative, but elegant.
Though you can knock it further down using ans in place of y.
Problem Recent Solvers330
Suggested Problems
-
1168 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1586 Solvers
-
528 Solvers
-
Side of an equilateral triangle
4339 Solvers
-
Double all elements in the array
518 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!