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, 21.06.2019 18:30
Based on your knowledge of word parts what does the word intervene mean
Answers: 1
question
English, 21.06.2019 21:00
For which cause did swift not write? the tory government the devaluation of irish coins the whig wars under william iii the starvation in ireland
Answers: 3
question
English, 21.06.2019 22:20
What do we know about the mother in “two kinds”? select all that apply. she came from china. she had two daughters who died. her mother, father, and first husband are dead. she is part japanese.
Answers: 1
question
English, 22.06.2019 08:30
Why is mme. loisel "full of anxiety" when she asks to borrow the necklace? a. she is humiliated at having to borrow the necklace. b. she dreads going to the reception. c. she lacks confidence in her beauty. d. mme. forester gives her too many pieces to choose from
Answers: 3
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.10.2020 22:01
question
Mathematics, 22.10.2020 22:01
question
Mathematics, 22.10.2020 22:01