Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- for i in list:
- rg = 0
- for k in range(1, i+1):
- if i % k == 0:
- rg += 1
- if rg == 2:
- print(f"Это число простое: {i}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement