Find all positive integers n such that $(n − 1)!$ is not divisible by $n^2$. When p is equal to 1,please provide the sum of all such integers.

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