Lines Matching defs:stop
55 * primes [-h] [start [stop]]
57 * Print primes >= start and < stop. If stop is omitted,
97 ubig stop; /* don't generate at or above this value */
114 stop = BIG;
124 /* Start and stop supplied on the command line. */
136 stop = strtoul(argv[1], &p, 0);
161 if (start > stop)
162 errx(1, "start value must be less than stop value.");
163 primes(start, stop);
199 * primes - sieve and print primes from start up to and but not including stop
202 primes(ubig start, ubig stop)
219 if (stop < 3) {
220 stop = (ubig)2;
222 if (stop <= start) {
232 if (stop != 2 && (stop&0x1) == 0) {
233 ++stop;
242 factor < stop && p <= pr_limit; factor = *(++p)) {
256 * upward until we pass the stop point
258 while (start < stop) {
277 if (stop-start > TABSIZE+TABSIZE) {
281 tab_lim = &table[(stop-start)/2]; /* partial sieve */
282 fact_lim = sqrt(stop+1.0);
316 fprintf(stderr, "usage: primes [-h] [start [stop]]\n");