please provide me with the explanation of prime and its multiple..

please provide the editorial or explain me the solution for the problem prime and its multiple(CodeChef: Practical coding for everyone) of yesterday’s contest codesurf…