Check if integer is a prime number - MATLAB Cody - MATLAB Central

Problem 45201. Check if integer is a prime number

Difficulty:Rate

Check if integer i is a prime number. Returns logical true '1' if it is.

Solution Stats

76.25% Correct | 23.75% Incorrect
Last Solution submitted on Nov 29, 2024

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers61

Suggested Problems

More from this Author5

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!