To check whether n is prime by trial division, up to which number… | Math and Number Theory question · AnyPrep