def read_numbers(filename):
    """ Read each number as a line from the file and return the numbers as a list. """
    with open(filename) as f:
        numbers = [int(l) for l in f.readlines()]
    return numbers