What is the big Oh of the following code snippet?

for(int i = 1; i < n; i *= 2){
  System.out.println("Value " + i + " is " + values[i]);
}
O(log n)
  • O(1)
  • O(n)
  • O(n^2)
  • O(n^3)

There are no hints for this question