Untitled

 avatar
user_8840555
plain_text
a year ago
239 B
3
Indexable
Never
def f(n, m):
    return n % m == 0

q = list(range(22, 52))

p = list(range(13, 38))

a = list(range(1, 1000))
for x in range(1, 1000):
    if (((x in q) <= (f(x, 18) or (x in p))) <= (x in a)) == 0:
        a.append(x)
print(a)