Solved problem 35 in R and 36 in J.
Merge branch 'master' of https://github.com/willbeason/ProjectEuler