diff options
author | Jim Blandy <jimb@red-bean.com> | 1994-10-10 18:22:23 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1994-10-10 18:22:23 +0000 |
commit | 8d3a7291cb8f53960de98355aa6644192612b24f (patch) | |
tree | cd4c42223bd0af58d16bcc1c734bfe8a74967ecf /proc | |
parent | a08274592837f3f031525447eed16b7e21b62479 (diff) |
entered into RCS
Diffstat (limited to 'proc')
-rw-r--r-- | proc/primes.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proc/primes.c b/proc/primes.c index 7284f244..d0fc4d0c 100644 --- a/proc/primes.c +++ b/proc/primes.c @@ -70,7 +70,11 @@ nextprime (unsigned n) bzero (sieve, (end - start) * sizeof (*sieve)); - /* ANSI C doesn't define what this means. Fuck you. */ + /* Make the sieve indexed by prime number, rather than + distance-from-start-to-the-prime-number. When we're done, + sieve[P] will be zero iff P is prime. + + ANSI C doesn't define what this means. Fuck them. */ sieve -= start; /* Set sieve[i] for all composites i, start <= i < end. |