You are given a input number x; print all the prime numbers less than equal to x.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers96
Suggested Problems
-
284 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2536 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13607 Solvers
-
11596 Solvers
-
Simple equation: Annual salary
4257 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Do not test for emptiness with isequal(x, []). Use isempty(x) instead