ON MATLAB !!!!! ( NOT JACA OR C++ OR PHYTON)
Considerthe prime numbers between 1 to 100. If a number is prime, then addthis value to the summation of previous prime numbers until thesummation exceeds 700.
Writethe above algorithm using
a)For loop
b)While loop
Hint:You can use isprime() function to control if a number is prime ornot. “break” command stops the loop when it is desired.
ONMATLAB!!!!!
Expert Answer
An answer will be send to you shortly. . . . .