in the loop before which the comment says,
//mark all numbers as prime
instead of incrementing it by 1,shouldn’t we be incrementing it by 2?Since according to the loop all values of p[i] would be 1 starting from i=3;
in the loop before which the comment says,
//mark all numbers as prime
instead of incrementing it by 1,shouldn’t we be incrementing it by 2?Since according to the loop all values of p[i] would be 1 starting from i=3;