for the prime number HW

Hi, I am currently working on a homework assignment and on my last problem but I am having some trouble.
The question is: For the prime number: ((((Why the for loop ends on sqrt(n) and not on (n)?)))) You need to explain your answer in the class ,,You should have a full explanation.

Answers (1)

Same answer as in
http://www.mathworks.com/matlabcentral/answers/270893

This question is closed.

Asked:

on 1 Mar 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!