is_prime(n) returns 1 (true) if n is prime and
0 (false) if n is not prime.
isprime returns true or false.
Use the command pari("isprime",n,1)
to have a primality certificat (see the documentation
PARI/GP with the menu Aide->Manuels->PARI-GP) and
pari("isprime",n,2) to use the APRCL test.
Input :
Output :
Input :
Output :
Input :
Output :
Input :
Output :
Input :
Output :
Input :
This returns the coefficients giving the proof of primality by the p−1 Selfridge-Pocklington-Lehmer test :
Input :
Output :