ProjectEuler solution in (eventually) different languages