require'prime' gets b=0 gets.split.map{|a|b|=1<b } } p z-2