Sha256: 1889bee4301a364d6af7190ba7790cb44615bc65670f7b1072969292d5c75378
Contents?: true
Size: 169 Bytes
Versions: 8
Compression:
Stored size: 169 Bytes
Contents
# coding: utf-8 class Integer def noncototient? return false if self < 10 or odd? (isqrt..(2 * self)).none? do |m| m.cototient == self end end end
Version data entries
8 entries across 8 versions & 1 rubygems