Project Euler Math and Programming Problems