changeset 380 | 669b72283b55 |
parent 354 | 5dc6c3673f9d |
child 428 | ee689f7c3122 |
--- a/day1/exercise/pytriads.py Mon Mar 08 20:45:33 2010 +0530 +++ b/day1/exercise/pytriads.py Thu Mar 11 18:01:23 2010 +0530 @@ -10,8 +10,8 @@ else: return gcd(b, a%b) -for a in range(3, 501): - for b in range( a+1, 501, 2): +for a in range(3, 101): + for b in range( a+1, 101, 2): if gcd( a, b ) == 1: is_ps, c = is_perfect_square((a * a) + (b * b)) if is_ps: print a, b, c