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
1 回表示 (過去 30 日間)
古いコメントを表示
please help me with writing a function for the output of prime numbers
2 件のコメント
the cyclist
2015 年 11 月 30 日
I assume that the reason you do not want to use the built-in function is that this is schoolwork.
Getting help with schoolwork here is fine, but please show some effort. What have you tried so far? Post your own code, and specific questions, and maybe someone will give you some hints.
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!