Naive implementation of the Sieve of Erathostenes in Ruby
Simplified grouping of letters