Forty students are standing in a grid of 8 x 5. Alex is one of them. The students are standing in a special manner. The students in the top row are numbered 1 to 8 from left to right, with the students in the remaining rows similarly numbered (as shown). Given are the clues. Find, on the basis of these clues, where is Alex.
XXXXXXXX (1-8)
XXXXXXXX (9-16)
XXXXXXXX (17-24)
XXXXXXXX (25-32)
XXXXXXXX (33-40)
Clues:
(1) There are 20 boys & 20 girls.
(2) Each row & column has at least two girls, but no more than four girls.
(3) Every girl borders at least one girl.
(4) Girls are located at positions that are prime numbers.
(5) Boys are located at positions that are either squares or cubes
(6) Alex is surrounded by unique number of girls.