initial answer to sieve in ruby