A Gaussian Prime is a gaussian integer that cannot be decomposed as product of two non-unit gaussian integers (the complex units being: 1, , i and ). We say that a gaussian prime , is positive, if and .
Write a function that counts the number of elements of set, ,of all positive gaussian primes , such that p and q are both .
For example, for , the complete set of positive gaussian primes are as follows:
Therefore, for the function should return .

Solution Stats

7 Solutions

4 Solvers

Last Solution submitted on Aug 21, 2023

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...