We will introduce Gaussian integers in order to decide which prime numbers can be written as a sum of two squares.