.
991 really is a prime number (see, for example, this table of prime numbers
https://www.google.com/search?q=prime+numbers+up+to+1000&rlz=1C1CHBF_enUS910US910&oq=prime+numbers&aqs=chrome.0.69i59j69i57j0l3j69i61l3.7922j0j7&sourceid=chrome&ie=UTF-8 )
So, 991 can be factored by only one way as a product of two positive integer numbers 991 = 1*991.
Since the area of the rectangle is  991 cm^2, the dimensions of the rectangle, that are positive integers by the condition,
can only be 1 cm and 991 cm.
Solved.