lib/numb/deficient.rb in numb-0.21.0 vs lib/numb/deficient.rb in numb-0.63.0
- old
+ new
@@ -10,10 +10,10 @@
# 27.deficient? #=> true
# 6.deficient? #=> false
#
def deficient?
return false unless self > 0
- sum_of_divisors < (2 * self)
+ σ < (2 * self)
end
alias :defective? :deficient?
end