input: Write a python function to perform the bitwise operations as shown in the function and ensure it returns the correct value after iterating through the loop.
  assert my_func(1) == 1000001
  assert my_func(2) == 2000002
  assert my_func(3) == 3000003
output: def my_func(n):
      result = 0
      for i in range(1, 1000001):
          result += n
      return result * 1000000 + n