summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>1994-10-10 18:22:23 +0000
committerJim Blandy <jimb@red-bean.com>1994-10-10 18:22:23 +0000
commit8d3a7291cb8f53960de98355aa6644192612b24f (patch)
treecd4c42223bd0af58d16bcc1c734bfe8a74967ecf /proc
parenta08274592837f3f031525447eed16b7e21b62479 (diff)
entered into RCS
Diffstat (limited to 'proc')
-rw-r--r--proc/primes.c6
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.