Sha256: 1468c07e02056b2454e1c3501334ae3f49db79b206dfc2c3e97fd75eea768ebd
Contents?: true
Size: 163 Bytes
Versions: 1
Compression:
Stored size: 163 Bytes
Contents
# coding: utf-8 class Integer def hoax? return false unless composite? sum_of_digits == prime_factors.uniq.map{|f| f.sum_of_digits}.reduce(:+) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numb-0.152.0 | lib/numb/hoax.rb |