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
Solution Comments
Show commentsProblem Recent Solvers30
Suggested Problems
-
Number of 1s in a binary string
9105 Solvers
-
Find the maximum number of decimal places in a set of numbers
2855 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
11383 Solvers
-
Reverse the elements of an array
1023 Solvers
-
8000 Solvers
More from this Author281
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!