5 int isprime(unsigned x)
9 if (z!=1 && z!=5) return 0;
14 if (y < z || z == x) return 1;
15 if (!(x % z)) return 0;
20 void calcprim(unsigned c)
26 printf("Found prime number %u.\n",c);
31 printf("Prime number not found!\n");
35 void main(int argc,char **argv)
41 printf("Usage: prime <number>\n");
44 c = strtoul(argv[1], &k, 0);