UVA960 Gaussian Primes

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=901 [PDF](https://uva.onlinejudge.org/external/9/p960.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA960/559109629a4873845138180cf251282f20feb2ab.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA960/9b91a9a1681fd5e958ddfae16b49996fba2c212a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA960/5a81ebf0245021d37e104dace316822d5f100105.png)