Prime number removal - MATLAB Cody - MATLAB Central

Problem 42977. Prime number removal

Difficulty:Rate

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

70.13% Correct | 29.87% Incorrect
Last Solution submitted on Nov 21, 2024

Problem Comments

Solution Comments

Show comments
MATLAB Central 2024 In Review
...
Let's celebrate what made 2024 memorable! Together, we made big impacts, hosted...

Problem Recent Solvers95

Suggested Problems

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!
Go to top of page