At the most basic level, flight numbers can only be up to 4 digits long. Airlines can choose any number from 1 to 9999. Due to superstition, they avoid using flight numbers 13, 666 and the like. Numbers that match aircraft models are also avoided to avoid confusion, such as 737 and 757.