Hi,
Here Problem link:http://mirror.codeforces.com/contest/273/problem/B
Here m can be non prime number.How can I handle the division property? I read tutorialhttp://mirror.codeforces.com/blog/entry/6625, but I can't understand properly. Can you reply, thanks