Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Created June 1, 2017 21:39
Show Gist options
  • Save fmasanori/a947891e8b23d319bdeb4249081771fd to your computer and use it in GitHub Desktop.
Save fmasanori/a947891e8b23d319bdeb4249081771fd to your computer and use it in GitHub Desktop.
n = int(input('N: '))
primo = True
for k in range(2, n):
if n % k == 0:
primo = False
break
if primo: print ('Primo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment