Solution for first Project Euler problem :)