Exercise · ZW-SUM-OF-TWO-SQUARES-001 · ★☆☆ Basic

According to Fermat's criterion, when is an odd prime \(p\) a sum of two squares?

Choose one option.

Show answer
  • B. \(p \equiv 1 \pmod{4}\)

Explanation

Fermat's criterion says an odd prime is a sum of two squares exactly when it leaves remainder 1 upon division by 4.

Study Elementary number theory in ZWMath →

Review the concept: Sum of two squares

An integer \(n\) is a sum of two squares if it can be written as the sum of the squares of two integers.

\[n = x^{2} + y^{2}\]

More practice problems: sum of two squares

ZW-SUM-OF-TWO-SQUARES-002 →