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
-
Generate a random matrix A of (1,-1)
363 Solvers
-
1371 Solvers
-
Is this is a Tic Tac Toe X Win?
515 Solvers
-
the average value of the elements
1865 Solvers
-
1402 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!