solving problem number 02, Euler project