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 a732598 commit c08a4b8Copy full SHA for c08a4b8
vm/src/math_utils/is_prime.rs
@@ -51,7 +51,7 @@ mod with_no_std {
51
}
52
53
for _ in 1..trials {
54
- result = result.pow(2) % n;
+ result = &result * &result % n;
55
56
if result == BigUint::one() {
57
return false;
0 commit comments