Can anyone there to help me solving this problem.If give me the code with comment then it will be nice.
the answer is square of (n+1)th prime number