soluted project euler1-3_ver2