Description
SumOfSquares.minSquares currently returns 3 for negative inputs even though negative integers cannot be represented as sums of integer squares.
Expected behavior
The method should reject negative input with IllegalArgumentException.
Reproduction
Calling SumOfSquares.minSquares(-1) currently returns 3 instead of reporting invalid input.
Description
SumOfSquares.minSquares currently returns 3 for negative inputs even though negative integers cannot be represented as sums of integer squares.
Expected behavior
The method should reject negative input with IllegalArgumentException.
Reproduction
Calling SumOfSquares.minSquares(-1) currently returns 3 instead of reporting invalid input.