app/site-content/proposals/2009/07/28/arm.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 07 Aug 2009 01:03:56 +0530
changeset 12 aac4944aca52
parent 0 c94bd9ae70d2
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