OFFSET
1,3
COMMENTS
After the number 1 + i, there are exactly two Gaussian primes here for each norm in A055025; if x + y*i is here, then y + x*i is also. - T. D. Noe, Mar 26 2014
Sequence A239621 provides a more condensed version, without y + x*i following each x + y*i. The real parts and imaginary parts are listed in A300587 and A300588. - M. F. Hasler, Mar 09 2018
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10002 (5001 complex numbers)
Eric Weisstein's World of Mathematics, Gaussian prime
Wikipedia, Complex Number
FORMULA
a(4n + 1) = a(4n) = A239621(2n) = A300588(n), a(4n + 2) = a(4n-1) = A239621(2n-1) = A300587(n). - M. F. Hasler, Mar 09 2018
EXAMPLE
The sequence of Gaussian primes (with nonnegative real and imaginary part) begins 1+i, 2+i, 1+2i, 3, 3i,...
MATHEMATICA
mx = 20; lst = Flatten[Table[{a, b}, {a, 0, mx}, {b, 0, mx}], 1]; qq = Select[lst, Norm[#] <= mx && PrimeQ[#[[1]] + I*#[[2]], GaussianIntegers -> True] &]; Sort[qq, Norm[#1] < Norm[#2] &]
PROG
(PARI) is_GP(x, y=0)={(x=factor(if(imag(x+I*y), x+I*y, I*x+y)))&&vecsum(x[, 2])==1+(abs(x[1, 1])==1)} \\ Returns 1 iff x + iy (y may be omitted) is a Gaussian prime. - M. F. Hasler, Mar 10 2018
(PARI) for(N=2, 499, if(isprime(N) && N%4<3, z=factor(I*N); for(i=0, N>2, print1(real(z[i+1, 1])", "imag(z[i+1, 1])", ")), issquare(N, &z) && isprime(z) && z%4==3 && print1(z", 0, 0, "z", ")) \\ M. F. Hasler, Mar 10 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
T. D. Noe, Mar 22 2014
STATUS
approved