def gcd_s_bench(x,y) times = 0 if x > y n = y else n = x end for k in 1..n if x % k == 0 && y % k == 0 ans = k end times = times + 1 end times end