Gaussian Prime

DOWNLOAD Mathematica Notebook GaussianPrimes

Gaussian primes are Gaussian integers z=a+bi satisfying one of the following properties.

1. If both a and b are nonzero then, a+bi is a Gaussian prime iff a^2+b^2 is an ordinary prime.

2. If a=0, then bi is a Gaussian prime iff |b| is an ordinary prime and |b|=3 (mod 4).

3. If b=0, then a is a Gaussian prime iff |a| is an ordinary prime and |a|=3 (mod 4).

The above plot of the complex plane shows the Gaussian primes as filled squares.

The primes which are also Gaussian primes are 3, 7, 11, 19, 23, 31, 43, ... (OEIS A002145). The Gaussian primes with |a|,|b|<=5 are given by -5-4i, -5-2i, -5+2i, -5+4i, -4-5i, -4-i, -4+i, -4+5i, -3-2i, -3, -3+2i, -2-5i, -2-3i, -2-i, -2+i, -2+3i, -2+5i, -1-4i, -1-2i, -1-i, -1+i, -1+2i, -1+4i, -3i, 3i, 1-4i, 1-2i, 1-i, 1+i, 1+2i, 1+4i, 2-5i, 2-3i, 2-i, 2+i, 2+3i, 2+5i, 3-2i, 3, 3+2i, 4-5i, 4-i, 4+i, 4+5i, 5-4i, 5-2i, 5+2i, 5+4i.

The numbers of Gaussian primes z with complex modulus |z|<=10^n (where the definition |a+ib|=sqrt(a^2+b^2) has been used) for n=0, 1, ... are 0, 100, 4928, 313752, ... (OEIS A091134).

The cover of Bressoud and Wagon (2000) shows an illustration of the distribution of Gaussian primes in the complex plane.

As of 2009, the largest known Gaussian prime, found in Sep. 2006, is (1+I)^(1203793)-1, whose real and imaginary parts both have 181189 decimal digits and whose squared complex modulus has 362378 digits.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.