Answer to Question #107413 in MatLAB for Sam

Question #107413
Program to store prime numbers upto 1000 in an array
1
Expert's answer
2020-04-03T15:07:25-0400
n = 1 : 1000;
p = isprime(n); %checks if it is a prime
t=n(p)    %displays the primes




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS