sieve of eratosthenes implementation in ruby.
not sure this is the best