Need Help

Revision en2, by Alpha_Go, 2016-10-08 13:33:59

Can anyone help me understand the logic behind this question Coprime Conundrum Question Link

I have understood the question but am finding it difficult to understand the editorial.

The problem setters code looks simple. But I still dont get it what is happening.

Problem Setters Code

Tags inclusion-exclusion, coprime, seive

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Alpha_Go 2016-10-08 13:33:59 10 Tiny change: 'd-coprimes/editorial)\n\nI hav' -> 'd-coprimes)\n\nI hav'
en1 English Alpha_Go 2016-10-08 13:33:09 422 Initial revision (published)