s=`factor`.split.map &:to_i p s[1]?s[1]>2?s[1]:s[2]<3?s[3]?[4,s[3]].min: 4:s[2]:s[0]