Problem

Source: All-Russian Olympiad 2019 grade 10 Problem 5

Tags: rectangle, number theory, prime numbers



In a kindergarten, a nurse took $n$ congruent cardboard rectangles and gave them to $n$ kids, one per each. Each kid has cut its rectangle into congruent squares(the squares of different kids could be of different sizes). It turned out that the total number of the obtained squares is a prime number. Prove that all the initial squares were in fact squares.