[][src]Function reikna::aliquot::abundant_number

pub fn abundant_number(n: u64) -> bool

Return true if n is an abundant number, that is, a number whose aliquot sum is greater than itself.

Panics

Panics if n is zero.

Examples

use reikna::aliquot::abundant_number;
assert_eq!(abundant_number(24), true);
assert_eq!(abundant_number(28), false);