set i to 1024 repeat while i > 0 log i set i to i / 2 end repeat