subject
English, 27.02.2020 22:59 glori1647

Let's say we want to check whether a number N is a prime number or not. The idea to solve this problem is to iterate through all the numbers starting from 2 to N using a loop and for every number check if it divides N. If you find any number that divides, we conclude that N is not prime (you should break from the loop as you don't need check further for this number). If we did not find any number between 2 and N which divides N then it means that N is prime. But one challenge could arise when you need to know the reason why your loop breaks. Is it because we managed to divide or is it that the loop completed?

ansver
Answers: 3

Another question on English

question
English, 22.06.2019 01:10
Ineed simplifying this thesis and making it easier to understand for the reader (more concise) "no matter how religious one may be, one’s faith tends to change under unexpected and challenging circumstances."
Answers: 2
question
English, 22.06.2019 01:30
Which traits are strongest in your persuasive essay: ideas, organization, voice, word choice, sentence fluency, or conventions?
Answers: 1
question
English, 22.06.2019 03:10
Which of the following story descriptions most directly shares themes with the passage above
Answers: 1
question
English, 22.06.2019 06:00
Although alice walker published a number of essays, poetry collections, and stories during the 1970s, her third novel, the color purple, ) which was published in 1982, brought her the widest acclaim in that it won both the national book award as well as the pulitzer prize (b) published in 1982, bringing her the widest acclaim by winning both the national book award and the pulitzer prize (c) published in 1982, brought her the widest acclaim, winning both the national book award and the pulitzer prize (d) was published in 1982 and which, winning both the national book award and the pulitzer prize, brought her the widest acclaim (e) was published in 1982, winning both the national book award as well as the pulitzer prize, and bringing her the widest acclaim
Answers: 2
You know the right answer?
Let's say we want to check whether a number N is a prime number or not. The idea to solve this probl...
Questions
question
Mathematics, 22.09.2021 18:10
Questions on the website: 13722367