Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- 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:
- print("YES")
- else:
- print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement