from math import sqrt
count = 0
for num in range(1, 1001):
    if sqrt(num) % 1 != 0 and (num**(1/3)) % 1 != 0 and (num**(1/5)) % 1 != 0:
        count+=1
print(f'There are {count} numbers that are not perfect squares, cubes, or fifths.')

914f4d836312b8db3579022c4b4538fcf5f18ac4
<mask token>

<mask token>
for num in range(1, 1001):
    if sqrt(num) % 1 != 0 and num ** (1 / 3) % 1 != 0 and num ** (1 / 5
        ) % 1 != 0:
        count += 1
print(
    f'There are {count} numbers that are not perfect squares, cubes, or fifths.'
    )

<mask token>
count = 0
for num in range(1, 1001):
    if sqrt(num) % 1 != 0 and num ** (1 / 3) % 1 != 0 and num ** (1 / 5
        ) % 1 != 0:
        count += 1
print(
    f'There are {count} numbers that are not perfect squares, cubes, or fifths.'
    )

from math import sqrt
count = 0
for num in range(1, 1001):
    if sqrt(num) % 1 != 0 and num ** (1 / 3) % 1 != 0 and num ** (1 / 5
        ) % 1 != 0:
        count += 1
print(
    f'There are {count} numbers that are not perfect squares, cubes, or fifths.'
    )

from math import sqrt
count = 0
for num in range(1, 1001):
    if sqrt(num) % 1 != 0 and (num**(1/3)) % 1 != 0 and (num**(1/5)) % 1 != 0:
        count+=1
print(f'There are {count} numbers that are not perfect squares, cubes, or fifths.')
