Generalized solution in Ruby to a problem on Project Euler. To preserve the challenge I limited myself only to rdoc / ri.