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:30
Read and key the following paragraph. 1"the final phase of franklin's public service is themost spectacular. 2after his return to america he waselected to the second continental congress and served withjefferson and john adams on the committee which drafted thedeclaration of independence. 3then, in 1776, he wasappointed one of the three commissioners to seek military andnaval assistance from france. 4for nearly ten years pariswas his center of operations, and, in large part because ofhis personal popularity, he secured the much-needed supportof france and spain and eventually negotiate thetreaty of paris (1783), by which england recognized americanindependence. 5when he returned to america in 1785 he wasold and ill, yet he found strength to serve as a delegate tothe constitutional convention, and to continue his work withmany humanitarian and scientific societies." type the key words for sentence's 2. 3. 4. 5.
Answers: 3
question
English, 21.06.2019 23:10
Write about a scientist and present information including a short biography, contribution,their scientific achievements and contribution to science
Answers: 2
question
English, 22.06.2019 02:20
The greatest gift the sumerians gave the world was the invention of writing. the sumerians were wealthy people. they needed some way to keep track of what they owned. they began drawing pictures. they used a reed as a pen. they drew on soft pieces of clay. the soft clay was then dried in the sun. the tablet became a permanent record. later, the sumerian drawings changed into wedge-shaped symbols. this kind of writing is called cuneiform. by putting symbols together, the sumerians could write entire sentences.
Answers: 1
question
English, 22.06.2019 07:00
Which type of rhetoric is used in this sentence? while i'm certain some will disagree with what i'm about to say, i respectfully ask them to listen to the evidence i will provide to support my claim
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
Questions on the website: 13722359