Sha256: 0660a52ab38321d7bd828bd6d5c5c2e462cb44bebb63773b00a8c329a4cdd738

Contents?: true

Size: 138 Bytes

Versions: 15

Compression:

Stored size: 138 Bytes

Contents

# coding: utf-8
class Integer
  def highly_abundant?
    return true if self == 1
    (self - 1).downto(1).all?{|m| σ > m.σ }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
numb-0.152.0 lib/numb/highly_abundant.rb
numb-0.138.0 lib/numb/highly_abundant.rb
numb-0.125.0 lib/numb/highly_abundant.rb
numb-0.114.0 lib/numb/highly_abundant.rb
numb-0.111.0 lib/numb/highly_abundant.rb
numb-0.109.0 lib/numb/highly_abundant.rb
numb-0.99.0 lib/numb/highly_abundant.rb
numb-0.96.0 lib/numb/highly_abundant.rb
numb-0.89.0 lib/numb/highly_abundant.rb
numb-0.84.0 lib/numb/highly_abundant.rb
numb-0.77.0 lib/numb/highly_abundant.rb
numb-0.72.1 lib/numb/highly_abundant.rb
numb-0.72.0 lib/numb/highly_abundant.rb
numb-0.68.0 lib/numb/highly_abundant.rb
numb-0.63.0 lib/numb/highly_abundant.rb