Problem 45964. Compute the nth Pythagorean prime
Pythagorean primes have the form
, 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
.
Solution Stats
Problem Comments
-
1 Comment
Nicolas Douillet
on 17 Jun 2025 at 7:10
Hey. I have some troubles submitting my solution to this problem. Since yesterday I keep having the message : "The server is not available. Wait a few minutes, and then retry your request. If the problem persists, contact the instructor." My solution when I tested it in the pad successufully passes through all the tests though. Any idea what the problem could be ?
Solution Comments
Show commentsProblem Recent Solvers36
Suggested Problems
-
Find the two most distant points
2898 Solvers
-
5792 Solvers
-
1412 Solvers
-
93 Solvers
-
Matrix multiplication across rows
357 Solvers
More from this Author301
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!