Ad
  • Default User Avatar

    What if you have 100 thousand numbers as input, then you would have to calculate remainders of all numbers.
    More effecient way as posted by iAbhix