Editorial for PRIMECLO

Do someone have editorial for PRIMECLO? approach?

I was using miller’s approximate algorithm to find closest prime. And segment tree to keep track of the things, but was getting NZEC in python.

If you wanna have a look at code: Solution: 18683934 | CodeChef