Problem 49738. Determine whether a prime is Pythagorean
Pythagorean primes get their name from the property that they can be written as the sum of two squares. For example, . Cody Problem 45964 asked you to find the nth Pythagorean prime and two numbers whose squares will produce the prime. This problem merely asks you to determine whether a prime can be written as the sum of two squares.
Write a function to determine whether a prime is Pythagorean. All input numbers in the tests are prime. Because some are large, they are given as strings.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers24
Suggested Problems
-
3295 Solvers
-
Project Euler: Problem 5, Smallest multiple
1495 Solvers
-
Back to basics 23 - Triangular matrix
1020 Solvers
-
Cell Counting: How Many Draws?
2111 Solvers
-
Remove entire row and column in the matrix containing the input values
384 Solvers
More from this Author287
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!