Sieve of Eratosthenes implementation in Ruby.