GIprime - Maple Help

GaussInt

 GIprime
 primality test

 Calling Sequence GIprime(z)

Parameters

 z - Gaussian integer

Description

 • The function GIprime returns true in case z is a Gaussian prime, false otherwise.
 • A Gaussian prime is a Gaussian integer which is not a unity or zero, and which is divisible only by numbers associated with itself or with 1.

Examples

 > $\mathrm{with}\left(\mathrm{GaussInt}\right):$
 > $\mathrm{GIprime}\left(751\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{GIprime}\left(4+9I\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{GIprime}\left(3+7I\right)$
 ${\mathrm{false}}$ (3)