primes = [ 2, 3, 5, 7 ] primes.each do |p| puts "A prime: #{p}" end
primes.each { |p| puts "A prime: #{p}" }