# coding: utf-8 N = 99 for i in range(N+1): count = 0 j = i while j > 0: if j%2 == 1: count += 1 j //= 2 if count%2 == 1: print(i, end=" ") print()
Standard input is empty
1 2 4 7 8 11 13 14 16 19 21 22 25 26 28 31 32 35 37 38 41 42 44 47 49 50 52 55 56 59 61 62 64 67 69 70 73 74 76 79 81 82 84 87 88 91 93 94 97 98