pbsd
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
79 ms·
- 571.▲
- 572.▲
- 573.▲
- 574.▲
- 575.▲
- 576.▲
- 577.▲
- 578.▲
- 579.▲
- 580.▲
- 581.▲
- 582.▲
- 583.▲
Well, suppose we have 4 moduli, N1, N2, N3, N4. The naïve way to find all pairwise GCDs is to compute GCD(N1, N2), GCD(N1, N3), GCD(N1, N4), ...., GCD(N3, N4). That's (n^2 - n)/2 GCD computations. The shortcut is to compute P = N1 - 584.▲
- 585.▲
- 586.▲
- 587.▲
- 588.▲
- 589.▲
- 590.▲
- 591.▲
- 592.▲
- 593.▲
- 594.▲
- 595.▲
- 596.▲
- 597.▲
- 598.▲
- 599.▲
- 600.▲
More ›