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 21:00
Hamlet act 1 what does polonius tell ophelia to do? why?
Answers: 2
question
English, 22.06.2019 02:00
The courage that my mother had went with her, and is with her still: rock from new england quarried; now granite in a granite hill. the golden brooch my mother wore she left behind for me to wear; i have no thing i treasure more: yet, it is something i could spare. oh, if instead she'd left to me the thing she took into the grave! - that courage like a rock, which she has no more need of, and i have. based on the 2nd stanza, how does the speaker feel about the golden brooch that was passed down from the mother to child? question 2 options: a: the speaker thinks it was a waste of money b: the speaker places a high value on the item c: the speaker never wears the brooch d: the speaker feels it could be easily replaced
Answers: 1
question
English, 22.06.2019 02:30
Which major world event was near the birth of the modernist movement
Answers: 1
question
English, 22.06.2019 12:50
How was scriptotherapy used? oa. protestors wrote narratives about vietnam that ran counter toveterans' own stories.ob. writers who lived in the 1960s and 1970s wrote unusual stories todefy traditionoc. soldiers filmed footage of the war in vietnam to tell their storyod. vietnam veterans began to write to work through their trauma
Answers: 1
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
Biology, 22.04.2020 02:41
question
History, 22.04.2020 02:41
Questions on the website: 13722363