The Project Euler problems in C, Python, and Scala