Gaussian primes: Difference between revisions

m
further clarification
m (→‎{{header|Perl}}: Missing the primes with a zero component)
m (further clarification)
Line 10:
 
 
A Gaussian integer is a [[wp:Gaussian_integer#Gaussian_primes|Gaussian prime]] if and only if either: both '''a''' and '''b''' are non-zero and its '''norm''' is a prime number, or, one of '''a''' or '''b''' is zero and it is the product of a unit '''(±1, ±i)''' and a prime integer of the form '''4n + 3'''.
 
Prime integers that are ''not'' of the form '''4n + 3''' can be factored into a Gaussian integer and its complex conjugate so are not a Gaussian prime.
10,327

edits