trialdivfrom: stop testing if n is prime