Solving Project Euler in different languages