app/site-content/proposals/2009/08/06/arm_.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 07 Aug 2009 01:03:56 +0530
changeset 12 aac4944aca52
parent 8 294ff7ac9cb6
permissions -rwxr-xr-x
With ACL registers

for i in range(100, 1000):
    a = i % 10
    b = (i / 10) % 10
    c = (i / 100) % 10
    if i == a ** 3 + b ** 3 + c ** 3:
        print "Armstrong Number: ", i