app/site-content/proposals/2009/08/06/pytriads.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 14 Aug 2009 11:07:24 +0530
changeset 49 33c54f815fd5
parent 8 294ff7ac9cb6
permissions -rwxr-xr-x
Changed rank list.html to be consistent with review list.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
def pytriads():
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
  for a in range(3, 100):
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
    for b in range(a+1, 100):
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
      if gcd(a, b) == 1:
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
        
294ff7ac9cb6 Added new set of files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6