Project Euler snippets from back in the day