Solutions for Project Euler in R