pub struct FactorTable {
pub n: usize,
pub sieve: Vec<usize>,
}
Expand description
前計算を行う
- $
O(N \log\log N)
$ 時間で篩を作成
素因数分解を行い,素因数のベクタを返す
戻り値
-
素因数のリスト
-
時間計算量: $O(\log x)
$
素因数分解を行い,(素因数, 指数) のベクタを返す
戻り値
-
(素因数, 指数) のベクタ
-
時間計算量: $O(\log x)
$
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.