Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
286 B
4
Indexable
Never
from itertools import*
cnt = 0
for i in product('0123456',repeat= 4):
    i = "".join(i)
    if i.count("5") == 1 and ('02' not in i) and ('20'not in i) and ('24'not in i) and ('42'not in i)  and \
            '62' not in i and '26'not in i:
        cnt += 1
        print(cnt,i)