Find all positive integers that are within $250$ of exactly $15$ perfect squares. Please provide the sum of the endpoints of the intervals that contain these integers.

Let's think step by step and output the final answer within \boxed{}.
user