title: How many number of times x can be divided by y?
body: <p>Like x=12, it can be divided by y=2, 2 times (12/2=6, 6/2=3) and 12 can be divided by 3, 1 time and 12 can be divided by 5, 0 times.
  Here x will be a composite no while y a prime number.
  Is there any inbuilt function in java?</p>
  
  <p>Is there any O(1) Solution?</p>