Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 30, 2020 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5f62d541be90da788a8567c4d3fad173 to your computer and use it in GitHub Desktop.
Save parzibyte/5f62d541be90da788a8567c4d3fad173 to your computer and use it in GitHub Desktop.
def primo(numero):
if numero == 0 or numero == 1 or numero == 4:
return False
for x in range(2, int(numero/2)):
if numero % x == 0:
return False
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment