Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 30d811a

Browse files
authored
Update 6_prime.py
1 parent 2778bef commit 30d811a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

6_prime.py

+12
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,17 @@
66
prime=False
77
if prime:
88
print(i)
9+
10+
11+
12+
13+
#python program for 4_pythogorean_triplet
14+
for a in range(1,1000):
15+
for b in range(a+1,1000):
16+
c=1000-(a+b)
17+
if(a**2)+(b**2)==(c**2):
18+
if a+b+c==1000:
19+
print(a*b*c)
20+
break
921

1022

0 commit comments

Comments
 (0)