Ensure that the addition mods[i]+delta cannot overflow in probable_prime().