package com.wy;
/**
* @author HelloWorld
* @create 2021-04-02-16:57
* @email 154803771@qq.com
*/
public class ShuiXianHua {
public static void main(String[] args) {
long i = 0;
for (long n = 1000000000; n < 10000000000L; n++) {
i++;
long number = n;
long sum = 0;
while (number != 0){
sum += Math.pow(number % 10, 10);
number /= 10;
}
if (sum == n) {
System.out.println("perfect: " + n);
}
// 打印进度
if (i % 90000 == 0) {
System.out.println(i / 90000 + " / 100000");
}
}
}
}