summaryrefslogtreecommitdiff
path: root/content/math
diff options
context:
space:
mode:
Diffstat (limited to 'content/math')
-rw-r--r--content/math/gcd-lcm.cpp2
-rw-r--r--content/math/piLehmer.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/content/math/gcd-lcm.cpp b/content/math/gcd-lcm.cpp
deleted file mode 100644
index a1c63c8..0000000
--- a/content/math/gcd-lcm.cpp
+++ /dev/null
@@ -1,2 +0,0 @@
-ll gcd(ll a, ll b) {return b == 0 ? a : gcd(b, a % b);}
-ll lcm(ll a, ll b) {return a * (b / gcd(a, b));}
diff --git a/content/math/piLehmer.cpp b/content/math/piLehmer.cpp
index 17df85e..adef16d 100644
--- a/content/math/piLehmer.cpp
+++ b/content/math/piLehmer.cpp
@@ -6,7 +6,7 @@ ll memoC[N];
void init() {
primeSieve(); // @\sourceref{math/primeSieve.cpp}@
- for (ll i = 0; i < N; i++) {
+ for (ll i = 1; i < N; i++) {
memoC[i] = memoC[i - 1];
if (isPrime(i)) memoC[i]++;
}