Project Euler practice code