A Gaussian integer is a complex number whose real and imaginary parts are both integers.
gaussiant provides the GaussianInt type,
which is a wrapper around num_complex::Complex
with additional methods for number theoretical computation.
Example
If a prime number p is congruent to 3 modulo 4, then it is a Gaussian prime (Wikipedia).
use ;