stp, num = 0, 0 while stp <2333: num += 1 if (num % 2 == 0) or (num % 3 == 0): stp += 1 print num ''' s = 0 for i in range(1,10000,1): if (i % 2 == 0) or (i % 3 == 0): s += 1 if s == 2333: print i