git: 64c8e9fc32df - main - primes: put an additional comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 May 2025 04:31:18 UTC
The branch main has been updated by maxim:
URL: https://cgit.FreeBSD.org/src/commit/?id=64c8e9fc32dfe4391cdef948c05dc67e90596dc8
commit 64c8e9fc32dfe4391cdef948c05dc67e90596dc8
Author: Maxim Konovalov <maxim@FreeBSD.org>
AuthorDate: 2025-05-20 04:28:14 +0000
Commit: Maxim Konovalov <maxim@FreeBSD.org>
CommitDate: 2025-05-20 04:29:49 +0000
primes: put an additional comment
---
usr.bin/primes/primes.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/usr.bin/primes/primes.c b/usr.bin/primes/primes.c
index 76d166e9bdab..1ce96d912012 100644
--- a/usr.bin/primes/primes.c
+++ b/usr.bin/primes/primes.c
@@ -241,6 +241,10 @@ primes(ubig start, ubig stop)
if (p <= pr_limit) {
return;
}
+ /*
+ * the next odd number after the largest prime in the
+ * precomputed list
+ */
start = *pr_limit+2;
}