We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02adf49 + a4dca40 commit 1abafdeCopy full SHA for 1abafde
test/unittest/utils/math_test.cpp
@@ -17,7 +17,6 @@ TEST(UtilsMathTest, FactorsTest) {
17
18
bool is_primitive_root_naive(int m, int g) {
19
assert(1 <= g && g < m);
20
- auto prs = factors(m - 1);
21
int x = 1;
22
for (int i = 1; i <= m - 2; i++) {
23
x = (int)((long long)(x)*g % m);
test/utils/math.hpp
@@ -18,7 +18,6 @@ std::vector<int> factors(int m) {
bool is_primitive_root(int m, int g) {
for (int x : factors(m - 1)) {
if (atcoder::internal::pow_mod_constexpr(g, (m - 1) / x, m) == 1) return false;
24
}
0 commit comments