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 Solvers335
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1021 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
339 Solvers
-
Replace multiples of 5 with NaN
413 Solvers
-
Convert given decimal number to binary number.
1484 Solvers
-
636 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!