Advertisement
Pemacope

Teclas 2018: B

Jan 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. n=int(input())
  2. p=0
  3. for i in range(1,n+1):
  4.     if(n%i)==0:
  5.         p=p+1
  6. if(p==2):
  7.     print(1)
  8. else:
  9.     print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement