Sha256: a5928fb85afaf2466857477afd1242e81b187e9163ebb1c896e944b7bf54aba6

Contents?: true

Size: 76 Bytes

Versions: 15

Compression:

Stored size: 76 Bytes

Contents

class Integer
  def smooth?(b)
    prime_factors.none?{|f| f > b}
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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