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
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers100
Suggested Problems
-
Swap the first and last columns
23038 Solvers
-
Create logical matrix with a specific row and column sums
349 Solvers
-
523 Solvers
-
245 Solvers
-
2682 Solvers
More from this Author328
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
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 ?
@Nicolas Douillet
I think its because your code is taking too long to run. you need to make your code fast so that it can be compiled within the given time and satisfy all the test cases.