Project Euler: Problem 9

That is the problem: We can solve the problem by writing a Python code. Let’s start with a function that checks if the three numbers , with , are a Pythagorean triplet. Now, let’s move on to defining the main function: and then, the main program: This is the answer:

Continua a leggere →