Joker's challenge

0

0 votes
Medium, Brute-force search, Hiring, Implementation, Recruit, Number Theory, Prime Factorization, Modular exponentiation, Ready, Mathematics, Sieve, Approved
The Editorial is locked. In order to qualify for points, you need to solve the problem without unlocking the editorial.
Are you sure you want to unlock the tab?
Unlock it

?