Guest User

Untitled

a guest
Dec 15th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. a=int(input())
  2. import math
  3. k=2
  4. while a%k!=0 and k<a**0.5:
  5. k=k+1
  6. if k==math.floor(a**0.5)+1:
  7. k=1
  8. print(k)
Add Comment
Please, Sign In to add comment