IUT CSE’16 batch students have completed their C Programming Course. As they are so dexterous programmer, they can solve almost all the problems which are assigned to them.

Now, IUT Programming Community (IUTPC) have been informed regarding the awesome programming skills of these young coders. IUTPC have arranged an immediate meeting about how to tackle these first year students by giving them a challenging problem to solve.

In the meeting, IUTPC have proposed the following problem . As first year students are quite new, so IUTPC have not proposed any stopper problem either. Also, 2nd and 3rd students are very hungry (As there are some AWESOME and INCREDIBLE programmers in CSE'14 and CSE'15) and whenever they see a problem, they start solving it.

Being a student of xth year, can you solve the following problem?

Given a number n, you have to print the first n*n prime numbers in the following pattern (See the sample output for details).