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.

Antworten (1)

Roger Stafford
Roger Stafford am 1 Mär. 2016

0 Stimmen

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

Diese Frage ist geschlossen.

Gefragt:

am 1 Mär. 2016

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by