Function primapalooza::perfect_number [] [src]

pub fn perfect_number(n: usize) -> bool

Is a number a perfect number. The sum of its factors is the number itself.

Examples

use primapalooza::perfect_number;
 
println!("{}", primapalooza::perfect_number(5));