refactored projecteuler2 solution. extracted sequence to own method and cleaned up logic a little