Skip to main content
1 of 2
user unknown
  • 4.6k
  • 31
  • 31

Bash, 74 chars

a=$1;p=${#a};for((;a>0;a/=10));do s=$((s+(a%10)**p));done;echo $((s==$1))
user unknown
  • 4.6k
  • 31
  • 31