require 'set'primes = Set[2, 3, 5, 7] # set of prime numbersprimes.delete_if {|x| x%2==1} # => #: remove oddsprimes.delete_if {|x| x%2==1} # => #: unchanged