Add prime generation in ruby