version 1.1.1.1, 2000/09/09 14:13:19 |
version 1.1.1.2, 2003/08/25 16:06:03 |
|
|
/* Classify numbers as probable primes, primes or composites. |
/* Classify numbers as probable primes, primes or composites. |
With -q return true if the folowing argument is a (probable) prime. |
With -q return true if the folowing argument is a (probable) prime. |
|
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
Copyright 1999, 2000, 2002 Free Software Foundation, Inc. |
|
|
This program is free software; you can redistribute it and/or modify it under |
This program is free software; you can redistribute it and/or modify it under |
the terms of the GNU General Public License as published by the Free Software |
the terms of the GNU General Public License as published by the Free Software |
Line 21 Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
Line 21 Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
|
|
char *progname; |
char *progname; |
|
|
|
void |
|
print_usage_and_exit () |
|
{ |
|
fprintf (stderr, "usage: %s -q nnn\n", progname); |
|
fprintf (stderr, "usage: %s nnn ...\n", progname); |
|
exit (-1); |
|
} |
|
|
|
int |
main (int argc, char **argv) |
main (int argc, char **argv) |
{ |
{ |
mpz_t n; |
mpz_t n; |
Line 55 main (int argc, char **argv) |
|
Line 64 main (int argc, char **argv) |
|
puts (" is a prime"); |
puts (" is a prime"); |
} |
} |
exit (0); |
exit (0); |
} |
|
|
|
print_usage_and_exit () |
|
{ |
|
fprintf (stderr, "usage: %s -q nnn\n", progname); |
|
fprintf (stderr, "usage: %s nnn ...\n", progname); |
|
exit (-1); |
|
} |
} |