Can anybody help me to solve the problem. Link of the problem is https://www.spoj.com/problems/BSPRIME/ . I don’t have any ideas, can you give me some hints or ideas in order to solve problem, please.
Thank you in advance. Please help me…