Added (divisible-by-range) helper function