Project Euler #9 In Python

Publicado em: 01 Abril 2021
no canal de: Dubious Code
96
0

Python solution to project euler problem 9 from here https://projecteuler.net/problem=9

This was a fun one. We know a 3,4,5 triangle. It turns out there are other perfect squares. So we find every combination of positive a,b,c where a+b+c = 1000 and then check if a^2 + b^2 = c^2.

I ran A and B up to 500 but I suspect it could have been less since C needed to be greater than A or B

All code

Copyright 2021 Google LLC
SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICEN...

The Snake image in the thumbnail - by Vecteezy https://www.vecteezy.com/vector-art/4...


Nesta página do site você pode assistir ao vídeo on-line Project Euler #9 In Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dubious Code 01 Abril 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 96 vezes e gostou 0 espectadores. Boa visualização!