Question: Write a program that displays 50 consecutive prime number starting at 2. Use MatLab. Please don't use For, just can use While loop, and, if,

Write a program that displays 50 consecutive prime number starting at 2.

Use MatLab. Please don't use For, just can use While loop, and, if, ifelse!!!!!! Here have a example about which function I can use to get prime number.

Write a program that displays 50 consecutive prime number starting at 2.

num = input ('enter number: ' ); num = int32 (num) ; 3 4 6- 7 8- 83 10- prime Flag = 1; 1 while ( i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!