Coprime Conundrum

  • + 1 comment

    CAN ANYONE EXPLAIN ME THE CONCEPT BEHIND THIS QUESTION AND WHAT MATHS IS APPLIED HERE.. I READ THE SOLUTIONS BUT DIDNT UNDERSTAND THEM.. everybody in their code have that loop with mask variable and i am not really getting hold of it