fork(1) download
  1. for n in range (100,1000,1):
  2. c = n%10
  3. b = ((n-c)%100)/10
  4. a = (n - 10*b -c)/100
  5. if n == a*a*a + b*b*b + c*c*c:
  6. print (n)
Success #stdin #stdout 0.01s 7092KB
stdin
Standard input is empty
stdout
153
370
371
407