Compute the nth Pythagorean prime - MATLAB Cody - MATLAB Central

Problem 45964. Compute the nth Pythagorean prime

Difficulty:Rate
Pythagorean primes have the form p = 4n+1, 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 p = a^2+b^2.

Solution Stats

44.44% Correct | 55.56% Incorrect
Last Solution submitted on Mar 19, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

Prográmky Image
Prográmky
  • 10 Problems
  • 84 Finishers

Problem Recent Solvers35

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!