Tinkering with math challenges from projecteuler.net