Tag Archives: factors

Unfriendly Numbers: Hackerrank

Problem link: https://www.hackerrank.com/challenges/unfriendly-numbers

Problem Statement:
There is one friendly number and N unfriendly numbers. We want to find how many numbers are there which exactly divide the friendly number, but does not divide any of the unfriendly numbers.
Continue reading

Advertisements