Docs.rs
dsalgo-0.3.10
dsalgo 0.3.10
Permalink
Docs.rs crate page
Links
Documentation
Repository
crates.io
Source
Owners
kagemeka
Dependencies
Versions
9.09%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module fermat_factorization_method
Functions
?
Module
dsalgo
::
fermat_factorization_method
source
·
[
−
]
Functions
fermat_factorization_method
for odd integer n n = ab (\exist a, b are odd) a = x + y b = x - y n = x^2 - y^2 x^2 = n + y^2 brute force y=0..n/2 to find x. (because x > y) return x + y