N = 17
is_prime = True
if N <= 1:
is_prime = False
else:
i = 2
while i * i <= N:
if N % i == 0:
is_prime = False
break
i += 1
if is_prime == True:
print(f"{N}은(는) 소수입니다.")
else:
print(f"{N}은(는) 소수가 아닙니다.")
To embed this project on your website, copy the following code and paste it into your website's HTML: