Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- b = []
- for a in range(100):
- int = random.randint(1,100)
- b.append(a)
- m = 0
- c = []
- i = 2
- s = 1
- d = 0
- for a in b:
- while s == 1 and i <= a // 2 and i <= (a // 10 + (a % 10) * 10) // 2:
- if a % i == 0 or (a // 10 + (a % 10) * 10) % i == 0:
- s = 0
- else:
- i += 1
- if s == 1:
- d += 1
- print(d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement