diff options
Diffstat (limited to 'proc')
-rw-r--r-- | proc/primes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proc/primes.c b/proc/primes.c index 896f84fb..b5e24d3e 100644 --- a/proc/primes.c +++ b/proc/primes.c @@ -51,6 +51,8 @@ growprimes () iscomp = alloca (sizeof (int) * nints); bzero (iscomp, sizeof (int) * nints); + + for (i = 0; i < nprimes; i++) for (j = primes[i] * 2; j < nints; j += primes[i]) iscomp[j] = 1; |