Hackerrank optimizing euler problem #1

The current code, now passes all tests :smiley: