\"\"

\

Express the number as a product of its factors.

\

The factors of 31:  7 = 1 × 31.

\

Since the number has exactly two factors, 1 and itself. The number is a prime number.

\

\"\"

\

The number 31 is a prime number.