Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor fast factorial algorithm (#761)
* Refactor fast factorial: Rename `p_indeces` -> `p_indices` * Refactor fast factorial: rework `p_indices` Collect indices into the map using `Iterator::collect` instead of iterating each prime and inserting it * Refactor fast factorial: better vector of ones Avoid unnecessary resizing and just use `vec![]` macro directly --------- Co-authored-by: Piotr Idzik <[email protected]>
- Loading branch information