Ensure @other_divisors is not modified on invalid input