solution, but never finishes computing. see comments
hashtag oneline, hashtag ruby, hashtag winning