n = 6
i = 2
j = 3
nat_nums, x = [], 0
while len(nat_nums) < n:
if(x%i == 0 or x%j ==0):
nat_nums.append(x)
x += 1
print(nat_nums)
biA9IDYKaSA9IDIKaiA9IDMKCm5hdF9udW1zLCB4ID0gW10sIDAKCndoaWxlIGxlbihuYXRfbnVtcykgPCBuOgogICAgaWYoeCVpID09IDAgb3IgeCVqID09MCk6CiAgICAgICAgbmF0X251bXMuYXBwZW5kKHgpCiAgICB4ICs9IDEKCnByaW50KG5hdF9udW1zKQo=