(CNN) -- Israeli President Shimon Peres said Wednesday that the "greatest danger" facing the Middle East was a nuclear Iran, adding that U.S. President Barack Obama agreed.