Coding practice on Project Euler