A generic integer $n = p_1^{a_1} \cdots p_n^{a_n}$ is a square iff the $a_i$ are even, and it is a sum of squares iff the $a_i$ are even for $p_i \equiv 3 \ \mathrm{mod} \ 4$.
How can I deduce the probability of a given integer to be a square? A sum of two squares? (and a sum of three squares?) Even for the first question I am dubious of how I should modelize the problem: do we have a probability $1/2$ for each prime in $n$? but the powers grow very fast, so probably I should normalize in some way...