From 0a54c46eea1e22a287d3a239a67e7e404693af55 Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Mon, 8 Jan 2024 17:37:27 +0100 Subject: [PATCH] Update comments --- src/nthPrimeApprox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nthPrimeApprox.cpp b/src/nthPrimeApprox.cpp index 4c9e573ff..16c4a34ea 100644 --- a/src/nthPrimeApprox.cpp +++ b/src/nthPrimeApprox.cpp @@ -257,7 +257,7 @@ uint64_t Ri_inverse(uint64_t x) uint64_t primePiApprox(uint64_t x) { // Li(x) is faster but less accurate than Ri(x). - // For small n speed is more important than accuracy. + // For small x speed is more important than accuracy. if (x < 1e10) return Li(x); else @@ -266,7 +266,7 @@ uint64_t primePiApprox(uint64_t x) uint64_t nthPrimeApprox(uint64_t n) { - // Li_inverse(x) is faster but less accurate than Ri_inverse(x). + // Li_inverse(n) is faster but less accurate than Ri_inverse(n). // For small n speed is more important than accuracy. if (n < 1e8) return Li_inverse(n);