Project Euler is a series of challenging mathematics and counting problems. The solution generally involves a combination of puzzle-solving insight and deft programming skills.
As a language devoted to number-crunching, R is ideal for solving these kinds of problems. Rory Winston has taken it upon himself to solve a number of the Project Euler problems, and has kindly presented the solutions in his Research Kitchen blog. The solutions make excellent examples of elegant R programming: check them out, or even try to solve the problems yourself, as a way of honing your R skills.
Cool! I was trying this same exercise for a while. It'll kick your ass into learning to vectorize things properly, when the problems run up against R's horribly slow loops.
Posted by: Peter | April 06, 2009 at 10:44