diff --git a/.verify-helper/docs/static/notebook.html b/.verify-helper/docs/static/notebook.html index 7dd8abe..75e82f8 100644 --- a/.verify-helper/docs/static/notebook.html +++ b/.verify-helper/docs/static/notebook.html @@ -37,6 +37,7 @@
u64 ctz(u64 x) { return countr_zero(x); }
+u64 binary_gcd(u64 x, u64 y) {
+ if(!x || !y) return x | y;
+ u64 n = ctz(x), m = ctz(y);
+ x >>= n, y >>= m;
+ while(x != y) {
+ if(x > y) x = (x - y) >> ctz(x - y);
+ else y = (y - x) >> ctz(y - x);
+ }
+ return x << min(n, m);
+}
+
+$10^{13}$ | $10^{14}$ | $10^{15}$ | +$10^{16}$ | +$10^{17}$ | +$10^{18}$ | ||||
---|---|---|---|---|---|---|---|---|---|
10752 | 17280 | 26880 | -|||||||
factor | -53211111 | -63221111 | -642111111 | -6321111111 | -5422111111 | -64211111111 | +41472 | +64512 | +103680 |
$≤n$ | -$10^{16}$ | -$10^{17}$ | -$10^{18}$ | +$n$ | +$2$ | +$3$ | +$5$ | +$7$ | +$11$ | +$13$ | +$17$ | +$19$ | +$23$ | +$29$ |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$d^0(x)$ | -41472 | -64512 | -103680 | +$n\#$ | +2 | +6 | +30 | +210 | +2310 | +30030 | +510510 | +9699690 | +$2.2 \times 10^8$ | +$6.5 \times 10^9$ |
factor | -83221111111 | -632211111111 | -842211111111 | +$5!$ | +$6!$ | +$7!$ | +$8!$ | +$9!$ | +$10!$ | +$11!$ | +$12!$ | +
---|---|---|---|---|---|---|---|---|---|---|---|
120 | +720 | +5040 | +40320 | +362880 | +3628800 | +$4.0 \times 10^7$ | +$4.8 \times 10^8$ |
u64 ctz(u64 x) { return countr_zero(x); }
+u64 binary_gcd(u64 x, u64 y) {
+ if(!x || !y) return x | y;
+ u64 n = ctz(x), m = ctz(y);
+ x >>= n, y >>= m;
+ while(x != y) {
+ if(x > y) x = (x - y) >> ctz(x - y);
+ else y = (y - x) >> ctz(y - x);
+ }
+ return x << min(n, m);
+}
+
+