Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. n = int(input())
  2. if n % 4 == 0 or n % 7 == 0 or n % 47 == 0 or n % 44 == 0 or n % 74 == 0 or n % 77 == 0 or n % 474 == 0 or n % 447 == 0 or n % 477 == 0 or n % 444 == 0 or n % 777 == 0 or n % 744 == 0 or n % 774 == 0 or n % 747 == 0:
  3. print("YES")
  4. else:
  5. print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement