As others have pointed out, it's easy enough to see that $3\mid177$. But just for fun, here's a complicated way to show that $177$ is not a prime.
Since $177\equiv1$ mod $4$, the sum-of-two squares theorem says that if it were a prime, then it could be written as the sum of two squares, $177=a^2+b^2$. Letting $a=2m$ and $b=2n-1$ (one of them must be even, the other odd), we find $4m^2+4n^2+4n+1=177$, which simplifies to
$$m^2+n(n+1)=44$$
Now $n(n+1)$ is even, so $m$ must be even, which means $n(n+1)=44-m^2$ is a multiple of $4$, which means either $4\mid n$ or $4\mid(n+1)$. But clearly we must have $n\lt7$ (since $7\cdot8=56\gt44$), so it suffices to check whether $44-n(n+1)$ is a square for $n=4$ or $n=3$. But neither $44-4\cdot5=24$ nor $44-3\cdot4=32$ is a square. So $177$ is not a prime.