Untitled

mail@pastecode.io avatar
unknown
python
a year ago
407 B
2
Indexable
for i in range(35000000, 40000000 + 1):
    if i % 2 != 0:
        k = 2
    else:
        k = 1
    d = 2
    while d * d < i:
        if i % d == 0:
            if d % 2 != 0:
                k += 1
            if (i//d) % 2 != 0:
                k += 1
        if k > 5:
            break
        d += 1
    if d * d == i and d % 2 != 0:
        k += 1
    if k == 5:
        print(i)