Find square difference

say first { $_² - ($_-1)² > 1000 }, ^Inf;

Output:

501

Last updated