You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/algebra/phi-function.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,9 +129,9 @@ If we need the totient of all numbers between $L$ and $R$, we can use the [segme
129
129
This implementation is based on the divisor sum property, but uses the [segmented sieve](sieve-of-eratosthenes.md#segmented-sieve) approach to compute the totient of all numbers between $L$ and $R$ in $O((R - L + 1) \log \log R)$.
130
130
131
131
```cpp
132
-
const int MAX_RANGE = 1e6 + 6, MAX_R = 1e14;
133
-
vector<int> primes;
134
-
int phi[MAX_RANGE], rem[MAX_RANGE];
132
+
const long long MAX_RANGE = 1e6 + 6, MAX_R = 1e14;
0 commit comments