require'mathn';1.upto(762){|i|p i if i.prime_division.map{|j,k|k}==[1]*3}