def report_missing_numbers(f):
    for line in f:
        numbers = [int(n) for n in line.split()]
all_numbers = set(range(numbers[0], numbers[-1]))
missing = all_numbers - set(numbers)
yield missing
finding the missing values in a range using any scripting language - perl, python or shell script