remove all prime numbers from the input e.g.
input =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
output =
1 4 6 8 9 10 12 14 15
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers98
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15806 Solvers
-
755 Solvers
-
Flip the vector from right to left
11225 Solvers
-
Replace every 3rd element in a vector with 4
267 Solvers
-
241 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!