i want to write a matlab function for the prime numbers without using the built in functions like isprime, so that i can enter a range of numbers and get the result that which of these are prime numbers, please help

2 次查看(过去 30 天)
please help me with writing a function for the output of prime numbers

回答(1 个)

Dave Behera
Dave Behera 2015-12-3
编辑:Dave Behera 2015-12-3
I encourage you to try to write the code yourself. If you face any issues while running it, try to debug it yourself. If you are stuck, then post a message with details. This is a good way to learn.

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by