Pythagorean primes have the form p = 4n+1, where n is an integer, and they can be written as the sum of squares of two integers. More information is available at Wikipedia, Numberphile, and the Online Encyclopedia of Integer Sequences.
Compute the nth Pythagorean prime p and two integers a and b such that p = a^2+b^2.

Solution Stats

271 Solutions

99 Solvers

Last Solution submitted on Apr 20, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers99

Suggested Problems

More from this Author323

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!