Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def primo(a):
- for i in range(2,int(a/2)+1):
- if a%i==0:
- return False
- return True
- a=int(input("Numero primo: "))
- print(primo(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement