Add euler problem #3