# Factorial vs Square

$(\color{red}n-1)!+1=\color{red}n^2$

Find the sum of all positive integers $$n$$ such that the above equation is fulfilled.

×