Primalidade python
n = int(input('Digite número diferente de zero: '))
primo = 0
count = 1
while count <= n:
if n % count == 0:
primo += 1
count += 1
if primo == 2:
print('primo')
else:
print('não primo')
👾
For further actions, you may consider blocking this person and/or reporting abuse
Dave Cross -
John Ajera -
JetThoughts Dev -
GRUUVIN.dev -
Top comments (0)