Lesson 4: Blocks 

def primes
  yield 2
  yield 3
  yield 5
end

primes { |p| puts "A prime: #{p}" }