示例#1
0
int main ()
{
    int k;
    mpz_class n;
    cout << "n ? ";
    cin >> k;
    n = k;
    aks(a);
}
int
main ()
{
  mpz_t n;
  mpz_init (n);
  printf ("Enter a number: ");
  gmp_scanf ("%Zd", &n);
  printf ("AKS says: %s\n", aks (n) ? "prime" : "composite");
  return 0;
}