Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. A = int(raw_input())
  2. B = int(raw_input())
  3.  
  4. num, cont = A, 0
  5. while True:
  6.  
  7.         if num == B: break
  8.  
  9.         if num % 3 != 0 and num % 5 != 0 and num % 7 != 0:
  10.  
  11.                 cont += 1
  12.  
  13.         num += 1
  14.  
  15. print cont
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement