Practicing problems on project euler