Answer:
const MAXNR=150;
let candidates = {};
for(let i=2; i<=MAXNR; i++) {
candidates[i] = true;
}
for(let p=2; p <= MAXNR; p++) {
if (candidates[p]) {
process.stdout.write(`${p} `);
// Now flag all multiples of p as false
i=2;
while(p*i <= MAXNR) {
candidates[p*i] = false;
i++;
}
}
}
Answer:
In Windows 10 press the start button.
Then type <em><u>'Microsoft Word'.</u></em>
Next you will see an <u><em>Open</em></u> option, press that.
Now your <em><u>'Microsoft Word'</u></em> is ready.
Explanation:
Answer with Explanation:
I would forego the all-day basketball tournament because, clearly, I will be spending so much for just a one-day fun. I'm sure there will be other upcoming basketball tournaments I can attend to. So, I will accept my neighbor's offer of helping to paint their apartment because <em><u>I will be earning $75 and such offer doesn't come every day.</u></em> Since I also want to enjoy and hang out with friends, I would call a friend to help me in painting the apartment so we could split the payment, which means<u> both of us will have</u><u><em> $37.5</em></u><u>.</u> In this case, <u>I will not only earn money on Saturday but will also get to enjoy the company of my friend.</u>