Smallest range

What is the smallest possible range that these 4 integers could have?

Problem



Four integers are chosen so that their mean is 2017.

The integers are all different.

What is the smallest possible range that the 4 integers could have?

This problem is taken from the UKMT Mathematical Challenges.