Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. x=int(input(""))
  2. result=[]
  3. for i in range(1, x+1):
  4.     if x%i==0:
  5.         result.append(i)
  6. if result==[]:
  7.     print("ПРОСТОЕ")
  8. else:
  9.     y=""
  10.     for i in result:
  11.         y+=(str(i)+" ")
  12.     print(y)
  13.     print("НЕТ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement