app/site-content/proposals/2009/07/28/arm.py
author Santosh G. Vattam <vattam.santosh@gmail.com>
Thu, 06 Aug 2009 18:49:06 +0530
changeset 7 3e6916eb3d2c
parent 0 c94bd9ae70d2
permissions -rwxr-xr-x
Added checkAccess routine

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