Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = int(raw_input())
- B = int(raw_input())
- num, cont = A, 0
- while True:
- if num == B: break
- if num % 3 != 0 and num % 5 != 0 and num % 7 != 0:
- cont += 1
- num += 1
- print cont
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement