While I primarily write code in VBA and SAS for my work, I have been fooling around with Python for quite a while. I have to say I vastly prefer the syntax to VB – in my opinion it’s a lot cleaner and simpler, meaning a lot more done with a lot less work. For that reason, I chose to attack the Project Euler problems using Python. Most of the functions I’ve written for use with these problems are stored here – I’ve no doubt that there are more efficient ways of implementing many of these solutions, so I’d welcome any comments or suggestions you may have for improvements.
If you like, you can download all the functions in a single file here.