Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input())
- is_simple = "True"
- for i in range(2, number):
- if number % i == 0:
- is_simple = "False"
- break
- print(is_simple)
- Тарикатско решение:)
- n = int(input())
- print("False" if n % 2 == 0 or n % 3 == 0 or n % 5 == 0 or n % 7 == 0 else "True")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement