output_description: Print the number of integers between A and B (inclusive) that can be evenly
  divided by neither C nor D.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C D
attempt: a, b, c, d = map(int, input().split())
  cd = c * d
  n_c = 0
  n_d = 0
  n_cd = 0
  i = (a / c + 1) * c
  while i <= b:
      n_c += 1
      i *= c
  i = (a / d + 1) * d
  while i <= b:
      n_d += 1
      i *= c
  i = (a / cd + 1) * cd
  while i <= b:
      n_cd += 1
      i *= cd
  print(b - a + 1 + n_c + n_d - n_cd)
  
problem_description: Statement
  
  You are given four integers A, B, C, and D. Find the number of integers
  between A and B (inclusive) that can be evenly divided by neither C nor D.
samples: [{"input": "4 9 2 3", "output": "2\n    \n\n5 and 7 satisfy the condition.\n\n* * *"}, {"input": "10 40 6 8", "output": "23\n    \n\n* * *"}, {"input": "314159265358979323 846264338327950288 419716939 937510582", "output": "532105071133627368"}]