ZOJ - 3483 - Gaussian Prime - 银槲晓风- 推酷
0 is not Gaussian prime. 1, -1, i , and - i are the units of Z [ i ], but not Gaussian primes. 3, 7, 11, . are both primes and Gaussian primes. 2 is prime, but is not Gaussian prime, as 2...
3798:Gaussian Prime
0 is not Gaussian prime. 1, -1, i, and -i are the units of Z[i], but not Gaussian primes. 3, 7, 11, . are both primes and Gaussian primes. 2 is prime, but is not Gaussian prime, as 2 =...
ZOJ - 3483 - Gaussian Prime - 银槲晓风- 博客园
0 is not Gaussian prime. 1, -1, i, and -i are the units of Z[i], but not Gaussian primes. 3, 7, 11, . are both primes and Gaussian primes. 2 is prime, but is not Gaussian prime, as 2 =...
ZOJ 3483 Gaussian Prime - 我辈皆愚- 博客频道- CSDN.NET
int prime(int x) { int i; for(i=2; i x; i++) if(x % i == 0) return 0; return 1; } int Binsearch(int x, int end, int s) { int begin = 1; while( begin = end ) { int mid = ( begin + end )/2; if( x == s[mid] ...
ZOJ - 3483 - Gaussian Prime-布布扣-bubuko.com
0 is not Gaussian prime. 1, -1, i, and -i are the units of Z[i], but not Gaussian primes. 3, 7, 11, . are both primes and Gaussian primes. 2 is prime, but is not Gaussian prime, as 2 =...
ZOJ 3483 Gaussian Prime(数学啊)-布布扣-bubuko.com
0 is not Gaussian prime. 1, -1, i, and -i are the units of Z[i], but not Gaussian primes. 3, 7, 11, . are both primes and Gaussian primes. 2 is prime, but is not Gaussian prime, as 2 =...