I am working on a problem in which 1 to N numbers are given and one have to count how many numbers between 1 to N are divisible by A or B but not by both.Where A and B are any natural number.Ho can i solve this problem efficiently rather than checking every number.
Asked
Active
Viewed 23 times