This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Returns the largest highly composite number less than or equal to the given number. | |
/// There is nothing clever about this algorithm, it is slow. | |
/// # Arguments | |
/// * `maximum` - A reference to a number that the highly composite number must not exceed | |
/// # Examples | |
/// ``` | |
/// assert_eq!(highest_highly_composite_number(&842), 840) | |
/// ``` | |
fn highest_highly_composite_number<'a, T: 'a>(maximum: &T) -> T | |
where |
NewerOlder