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.
1 parent 02adf49 commit a2cd3f6Copy full SHA for a2cd3f6
test/utils/math.hpp
@@ -18,7 +18,6 @@ std::vector<int> factors(int m) {
18
19
bool is_primitive_root(int m, int g) {
20
assert(1 <= g && g < m);
21
- auto prs = factors(m - 1);
22
for (int x : factors(m - 1)) {
23
if (atcoder::internal::pow_mod_constexpr(g, (m - 1) / x, m) == 1) return false;
24
}
0 commit comments